webpackJsonp([5],{0:function(e,t,n){(function(e,t){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e!=-1){if(6==e&&"senior"==D.storage.option.unreader.show)return void(location.href=location.origin+"/unreader/main.html");2==e&&oe.Update("labs"),3==e&&oe.Update("connect"),7==e&&oe.Update("account"),G.tabsItem.forEach(function(t,n){return t.active=e==n}),m(e)}}function i(){setTimeout(function(){$(".loadingbar").animate({opacity:0},function(){$(".loadingbar").remove(),$(".bottom").removeAttr("style")})},1e3)}function s(){D.storage.puread=new Be.default(D.storage.sites),D.storage.pr.origins=D.storage.option.origins}function l(){q.Incompatible(D.storage.version,D.storage.simpread)&&D.storage.Write(function(){(new N.default).Render({type:2,content:'检测到你曾经修改过第三方适配源，<b>务必刷新后重新导入</b>！<a target="_blank" href="http://ksria.com/simpread/docs/#/站点适配源?id=第三方适配源">详细说明</a>',state:"holdon"}),Q.SendMessage("option",!0)},D.storage.simpread),q.VerifyPlugins(D.storage.option)&&(new N.default).Render({type:2,content:'有需要清理的已失效插件，详细请看 <a href="http://ksria.com/simpread/welcome/version_'+D.storage.version+'.html#badplugins" target="_blank">失效插件</a>',state:"holdon"})}function c(){var e=location.search,t="?simpread_mode=";if(e.startsWith(t)){switch(e.replace(t,"")){case"init":(new N.default).Render(0,"数据重置成功！");break;case"reload":(new N.default).Render(0,"数据导入成功！");break;case"reload_lock":(new N.default).Render(0,"数据导入成功！"),(new N.default).Render({type:2,content:"检测到远程备份文件的账户权限信息与本地不一致，<b>已重置本地权限</b>，如需要重新获取。",state:"holdon"});break;case"reload_changeuid":(new N.default).Render(0,"数据导入成功！"),(new N.default).Render({type:2,content:"远程配置备份文件中的账户与本地不同，已删除本地账户权限，如需要请重新获取。",state:"holdon"});break;case"clear":(new N.default).Render(0,"数据清除成功！");break;case"sync":(new N.default).Render(0,"数据同步成功！");break;case"signin_sync":(new N.default).Render({type:1,content:'已关闭简悦 · 同步助手功能，如需要请重新开启。<br>请注意：扩展端需要先 <b>授权验证</b> 后才能使用 <b>简悦 · 同步助手</b>，请点击下方进行操作，详细 <a target="_blank" href="http://ksria.com/simpread/docs/#/Sync?id=验证">请看这里</a>',state:"holdon"});break;case"signin":setTimeout(function(){window.dispatchEvent(new CustomEvent("account_action",{detail:{action:"login"}}))},1200)}history.pushState("","","/options/options.html")}location.hash.includes("?anchor=")&&!function(){var e=location.hash.split("?anchor="),t=e[0],n=e[1];history.pushState("","","/options/options.html"+t),setTimeout(function(){$('div[data-page="'+t.replace("#","")+'"] [data-name="'+decodeURI(n)+'"]')[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},400)}()}function d(e){var t=location.hash;if(t.startsWith("#firstload?ver=")||t.startsWith("#update?ver=")){var n=t.match(/\w+/)[0],a=t.match(/[0-9\.]+/)[0],r=q.Notify(e,n,a);(new N.default).Render("简悦 版本提示",r),localStorage.setItem("simpread-patch-off",!0),Ue={first:!0},t.startsWith("#update?ver=")&&(Q.SendMessage("version",!0),Ue={first:!0,update:!0},u(!1,a),l()),X.browser.runtime.sendMessage(Z.Add(Z.MESSAGE_ACTION.track,{eventCategory:"install",eventAction:t.startsWith("#firstload?ver=")?"install":"update",eventValue:t.startsWith("#firstload?ver=")?"install":"update"})),history.pushState("","","/options/options.html")}else if(t.startsWith("#update?patch=")){var o=t.match(/[0-9\.]+/)[0];"5005"==o&&u(!1,o),history.pushState("","","/options/options.html")}else oe.Update("option");F.default.Patch("get")&&(!localStorage.getItem("simpread-patch-off")&&(new N.default).Render("简悦 版本提示",q.SilentUpdate()),F.default.Patch("remove"),localStorage.setItem("simpread-patch-off",!0))}function p(e){e&&D.storage.GetRemote("local",function(e,t){t?(new N.default).Render(0,"本地更新出现错误，请选择手动点击 同步配置列表"):(D.storage.pr.Addsites(e),D.storage.Writesite(D.storage.pr.sites,function(){return D.storage.Statistics("create")}))}),window.location.hash&&window.location.hash.startsWith("#firstload")&&e&&u(!0,"all")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Ne.Render("body",e,t,n)}function m(e){$(".top").css("background-color",G.topColors[e]),$(".header").css("background-color",G.topColors[e]).find(".title").text(G.tabsItem[e].name),0==e||1==e||2==e||3==e||4==e||5==e||7==e||8==e?$(".main").addClass("main_labs"):$(".main").removeClass("main_labs"),f(G.headerColors[e])}function f(n){G.tabsItem.forEach(function(e){return"account"==e.value&&(2!=D.storage.user.rule||1==Te.auth.lock)&&(e.icon=H.IconPath("lock"))});var a=e.createElement(j.default,{waves:"md-waves-effect md-waves-light",headerStyle:{transition:"all 1000ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},bgColor:n,items:G.tabsItem,onChange:function(e,t,n){return r(e,t,n)}},e.createElement("section",{style:{padding:"0"}},e.createElement(pe.default,{lock:Te.auth.lock,website_sync:We,backgroundColor:G.topColors[0],sync:function(){return i()},onChange:function(e){return l(e)},onLock:function(){return s()}})),e.createElement("section",{style:{padding:"0"}},e.createElement("div",{id:"labs","data-page":"simple",style:{width:"100%"}},e.createElement("div",{className:"version-tips","data-hits":"focusmode"},e.createElement("div",{className:"label","data-head-level":"h1"},"聚焦模式"),e.createElement("div",{className:"lab",style:{padding:"30px 30px 10px 10px"}},e.createElement(se.default,{option:D.storage.focus}),e.createElement(I.default,{type:"flat",width:"100%",text:"保 存",color:"#fff",backgroundColor:G.topColors[1],icon:H.IconPath("save_icon"),waves:"md-waves-effect md-waves-button",onClick:function(){return l(!0)}}))),e.createElement("div",{className:"version-tips","data-hits":"readmode"},e.createElement("div",{className:"label","data-head-level":"h1"},"阅读模式"),e.createElement("div",{className:"lab",style:{padding:"30px 30px 10px 10px"}},e.createElement(ce.default,{option:D.storage.read}),e.createElement(I.default,{type:"flat",width:"100%",text:"保 存",color:"#fff",backgroundColor:G.topColors[1],icon:H.IconPath("save_icon"),waves:"md-waves-effect md-waves-button",onClick:function(){return l(!0)}}))))),e.createElement("section",{style:{padding:"0"}},e.createElement(me.default,{lock:Te.auth.lock,option:D.storage.option,read:D.storage.read,focus:D.storage.focus,onChange:function(e){return l(e)},onLock:function(){return s()}})),e.createElement("section",{style:{padding:"0"}},e.createElement(he.default,{lock:Te.auth.lock,option:D.storage.option,onChange:function(e){return l(e)},onLock:function(){return s()}})),e.createElement("section",{style:{padding:"0","overflow-x":"hidden"}},e.createElement(ke.default,{option:D.storage.option,onChange:function(e){return l(e)}})),e.createElement("section",{style:{padding:"0"}},e.createElement(ge.default,null)),e.createElement("section",null,e.createElement(_e.default,{list:D.storage.unrdist.map(function(e){return C({},e)}),onLoadMoreClick:function(){return setTimeout(function(){return R.Render("list")},200)}})),e.createElement("section",{style:{padding:"0"}},e.createElement(ye.default,{user:D.storage.user,load:Ue,onChange:function(e){return l(e)}})),e.createElement("section",{style:{padding:"0"}},e.createElement(Ee.default,{option:D.storage.option,site:D.storage.simpread.sites.length,statistics:D.storage.statistics,onClick:function(e){return u(!0,"all",!0)}}))),r=function(e,t,n){var a=t.attr("id");o(a),setTimeout(function(){return x()},200)},i=function(){R.Render("body")},s=function(){Pe.Render(!0,Te.auth.token,function(e){})},l=function(e){D.storage.Write(function(){Q.SendMessage("option",!0),e&&(new N.default).Render(0,"保存成功，页面刷新后生效！")})};try{t.render(a,$(".tabscontainer")[0])}catch(e){(new N.default).Render({type:3,content:'当前配置文件出错导致无法打开选项页，你可以通过以下方式解决：<br>1. 下载当前配置文件（点击右侧）；<br>2. 重装简悦，<a target="_blank" href="https://simpread.pro/"><b>点击这里</b></a> 查看简悦的下载地址；<br>3. 将 <b>下载后的配置文件导入简悦</b> 即可自动修复此问题。',action:"下载",state:"holdon",callback:function(e){var t="data:text/json;charset=utf-8,"+encodeURIComponent(D.storage.Export());ee.Download(t,"simpread-config-备份的配置文件.json")}})}}function h(){var n=function(){L.Open()};setTimeout(function(){"true"==localStorage.getItem("simpread-pin")&&n()},500);var a=e.createElement(I.default,{waves:"md-waves-effect md-waves-circle",hoverColor:"transparent",icon:H.IconPath("sidebar_icon"),onClick:function(){return n()}});t.render(a,$(".header .nav")[0]),t.render(a,$(".topnav")[0])}function b(){var n=function(e,t){var n=G.tabsItem.findIndex(function(e){return e.value==t.value});o(n),setTimeout(function(){return x()},200)},a=[{name:"帮助中心",value:"help",fontIcon:'<i class="fas fa-question-circle"></i>',route:"https://simpread.pro/help"},{name:"开源列表",value:"license",fontIcon:'<i class="fas fa-code"></i>',route:"http://ksria.com/simpread/docs/#/开源列表"}],r=function(){var e=localStorage.getItem("simpread-pin")||"false";e="true"==e,e=!e,localStorage.setItem("simpread-pin",e),e?(new N.default).Render("已固定显示。"):(new N.default).Render("已经取消固定。")};G.menuItem=G.menuItem.concat(a);var i=e.createElement(L.Sidebar,{items:G.menuItem,waves:"md-waves-effect",autoClose:!1,showClose:!0,pined:"true"==localStorage.getItem("simpread-pin"),header:"设定",footer:" 简悦 © 2017 ~ 2021",onClick:function(e,t){return n(e,t)},onPin:function(){return r()}});t.render(i,$(".sidebar")[0])}function g(){sessionStorage.setItem("is_update",!1);var e='\n        <div class="md-waves-effect bubbles notice effect" aria-label="消息中心" data-balloon-pos="up">\n            <i><svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2555" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24"><defs><style type="text/css"></style></defs><path d="M787.908422 563.765991 787.908422 349.052814c0-152.726403-96.294137-222.682685-223.373417-236.678444 0.031722-0.931209 0.278339-1.811252 0.278339-2.76702 0-27.231201-22.429849-49.288566-50.031487-49.288566-27.662013 0-50.058093 22.057365-50.058093 49.288566 0 0.937348 0.23843 1.804089 0.295735 2.677992-127.636982 13.70207-224.524636 83.607186-224.524636 236.767472l0 214.713176c0 172.349323-442.565605 257.698177 265.890766 257.698177C1214.842001 821.464167 787.908422 736.115314 787.908422 563.765991L787.908422 563.765991zM514.782881 960.670649c52.405557 0 94.916766-41.893132 94.916766-93.54042L419.849742 867.13023C419.849742 918.777517 462.347648 960.670649 514.782881 960.670649L514.782881 960.670649zM514.782881 960.670649" p-id="2556" fill="#ffffff"></path></svg></i>\n            <em class="init">...</em>\n        </div>';D.storage.Notice(function(t){$.isEmptyObject(t)&&(D.storage.notice.latest=0),$.get(D.storage.notice_service.latest+"?"+Math.round(+new Date),function(t){0==D.storage.notice.latest?($("body").append(e),sessionStorage.setItem("is_update",!0)):D.storage.notice.latest!=t?($("body").append(e),sessionStorage.setItem("is_update",!0)):D.storage.notice.unsee>0?($("body").append(e),$(".bubbles em").removeClass("init").text(D.storage.notice.unsee),sessionStorage.setItem("is_update",!0)):($("body").append(e),$(".bubbles em").remove())})}),$("body").on("click",".notice",function(e){location.href=location.origin+"/options/notice.html?is_update="+sessionStorage.getItem("is_update"),X.browser.runtime.sendMessage(Z.Add(Z.MESSAGE_ACTION.track,{eventCategory:"help",eventAction:"help",eventValue:"notice"}))})}function v(){var n='<svg viewBox="0 0 1024 1024" version="1.1" width="24" height="24"><defs><style type="text/css"></style></defs><path d="M512 704c-187.733333 0-341.333333-153.6-341.333333-341.333333s153.6-341.333333 341.333333-341.333334 341.333333 153.6 341.333333 341.333334-153.6 341.333333-341.333333 341.333333z m0-597.333333c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z" p-id="4789" fill="#ffffff"></path><path d="M512 576c119.466667 0 213.333333-93.866667 213.333333-213.333333s-93.866667-213.333333-213.333333-213.333334-213.333333 93.866667-213.333333 213.333334 93.866667 213.333333 213.333333 213.333333z" fill="#ffffff"></path><path d="M384 776.533333c0-25.6 21.333333-42.666667 42.666667-42.666666h170.666666c21.333333 0 42.666667 17.066667 42.666667 42.666666s-21.333333 42.666667-42.666667 42.666667h-170.666666c-25.6 0-42.666667-17.066667-42.666667-42.666667z m42.666667 110.933334c0-25.6 17.066667-42.666667 42.666666-42.666667h85.333334c25.6 0 42.666667 17.066667 42.666666 42.666667s-17.066667 42.666667-42.666666 42.666666h-85.333334c-21.333333 0-42.666667-21.333333-42.666666-42.666666z m42.666666 85.333333c0-12.8 8.533333-21.333333 21.333334-21.333333h42.666666c12.8 0 21.333333 8.533333 21.333334 21.333333s-8.533333 21.333333-21.333334 21.333333h-42.666666c-12.8-4.266667-21.333333-12.8-21.333334-21.333333z" p-id="4791" fill="#ffffff"></path></svg>',a='<svg viewBox="0 0 1024 1024" version="1.1" width="24" height="24"><defs><style type="text/css"></style></defs><path d="M649.179 512l212.839-212.84c37.881-37.881 37.881-99.298 0-137.179s-99.298-37.881-137.179 0L512 374.821l-212.839-212.84c-37.881-37.881-99.298-37.881-137.179 0s-37.881 99.298 0 137.179L374.821 512 161.982 724.84c-37.881 37.881-37.881 99.297 0 137.179 18.94 18.94 43.765 28.41 68.589 28.41 24.825 0 49.649-9.47 68.589-28.41L512 649.179l212.839 212.84c18.94 18.94 43.765 28.41 68.589 28.41s49.649-9.47 68.59-28.41c37.881-37.882 37.881-99.298 0-137.179L649.179 512z" fill="#ffffff"></path></svg>',r='\n                <div class="md-waves-effect bubbles help effect" aria-label="帮助中心" data-balloon-pos="up">\n                    <i>'+n+"</i>\n                </div>",o=function(){t.unmountComponentAtNode($(".guide-bg")[0]),$(".help i").html(n).css({animation:".1s reverse fadein,235ms cubic-bezier(.4,0,.2,1) popdown"}),$(".guide-bg").remove()};$("body").append(r),$("body").on("click",".help",function(n){0==$(".guide-bg").length?($("body").append('<div class="guide-bg"></div>'),t.render(e.createElement(je.Guide,{onExit:function(){return o()}}),$(".guide-bg")[0]),$(".help i").html(a).css({animation:".1s reverse fadein,235ms cubic-bezier(.4,0,.2,1) popup"}),X.browser.runtime.sendMessage(Z.Add(Z.MESSAGE_ACTION.track,{eventCategory:"help",eventAction:"help",eventValue:"help"}))):o()})}function k(){var e='\n        <div class="md-waves-effect bubbles feedback effect" aria-label="给我反馈" data-balloon-pos="up">\n            <i><svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M896 981.333333l-213.333333-128H213.333333c-46.933333 0-85.333333-38.4-85.333333-85.333333V128c0-46.933333 38.4-85.333333 85.333333-85.333333h597.333334c46.933333 0 85.333333 38.4 85.333333 85.333333v853.333333zM298.666667 512c-8.533333 0-12.8 0-21.333334 4.266667s-17.066667 17.066667-21.333333 25.6c0 12.8 0 25.6 4.266667 34.133333 55.466667 93.866667 153.6 149.333333 260.266666 149.333333 106.666667 0 204.8-55.466667 260.266667-149.333333 4.266667-8.533333 8.533333-21.333333 4.266667-34.133333-4.266667-12.8-8.533333-21.333333-21.333334-25.6-8.533333-4.266667-12.8-4.266667-21.333333-4.266667-17.066667 0-29.866667 8.533333-38.4 21.333333C665.6 597.333333 597.333333 640 520.533333 640c-76.8 0-145.066667-42.666667-183.466666-106.666667-8.533333-12.8-21.333333-21.333333-38.4-21.333333z" fill="#ffffff"></path></svg></i>\n        </div>';$("body").append(e),$("body").on("click",".feedback",function(e){ze.Render(D.storage.version,D.storage.user),setTimeout(function(){return R.Render(".simpread-feedback")},200),X.browser.runtime.sendMessage(Z.Add(Z.MESSAGE_ACTION.track,{eventCategory:"help",eventAction:"help",eventValue:"feedback"}))})}function w(){var e=localStorage.getItem("simpread-sync-config-version");e&&e!=D.storage.version&&(new N.default).Render({type:2,content:"发现本地配置文件版本较低，已自动更新为新版，请务必 <b>手动覆盖本地环境</b>。",state:"holdon",action:"覆盖",callback:function(e){"action"==e&&localStorage.removeItem("simpread-sync-config-version"),"action"==e&&window.dispatchEvent(new CustomEvent("account_action",{detail:{action:"sync_set"}}))}});var t=localStorage.getItem("simpread-sync-config-state");"empty"==t&&(new N.default).Render({type:2,content:"嗨，发现同步助手 <b>未读取到本地配置</b>，已使用 <b>浏览器配置文件</b>。<br>解决方案： <br>1. 确保本地 <b>存在配置文件</b>。<br>2. 将浏览器配置文件 <b>保存到本地</b>。<br>3. 关闭 <b>同步助手的自动同步</b> 功能。",state:"holdon",action:"保存",cancel:"关闭",callback:function(e){localStorage.removeItem("simpread-sync-config-state"),window.dispatchEvent(new CustomEvent("account_action",{detail:{action:"action"==e?"sync_set":"sync_close"}}))}})}function y(){var e=$('[data-head-level="h1"]');e.addClass("md-waves-effect"),e.append('<span class="draw md-waves-effect"><i class="arrow fas fa-angle-up"></i></span>'),e.on("click",function(e){$(e.currentTarget).find(".draw").click()}),e.find(".draw").on("click",function(e){var t=$(e.currentTarget),n=t.parent(),a=n.text();return t.hasClass("close")?(n.next().slideDown(),localStorage.removeItem("option-item-collapse-"+a)):(n.next().slideUp(),localStorage.setItem("option-item-collapse-"+n.text(),"open")),n.toggleClass("close"),t.toggleClass("close"),!1}),e.each(function(e,t){var n=$(t);name=n.text().replace(/ \S+/gi,""),n.attr("data-name",name),localStorage.getItem("option-item-collapse-"+name)&&n.click(),localStorage.getItem("option-item-collapse-"+name)&&n.prev().addClass("close")}),$("[data-page]").map(function(e,t){var n=$(t).attr("data-page");He[n]=[],$(t).find('[data-head-level="h1"]').map(function(e,t){He[n].push($(t).text().replace(/ \S+/gi,""))})})}function x(){var e=location.hash.replace("#","")||"common",t="";He[e]&&(He[e].forEach(function(e){t+='<page-outline class="md-waves-effect"><outline-item>'+e+"</outline-item></page-outline>"}),$("toc-bg").remove(),$("body").append("<toc-bg><toc-header>目录</toc-header><page-toc>"+t+"</page-toc></toc-bg>"),$($("page-toc page-outline")[0]).addClass("active"),$("page-toc page-outline").on("click",function(t){Ge=!0,setTimeout(function(){return Ge=!1},500);var n=$(t.currentTarget),a=n.text().replace(/ \S+/gi,"");$("page-outline").removeClass("active"),n.addClass("active"),$('[data-page="'+e+'"] [data-name="'+a+'"]')[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}))}function E(){if(!Ge){var e=void 0,t=void 0,n=void 0,a=location.hash.replace("#","")||"common",r=$("toc-bg"),o=r.outerHeight(),i=r.find("page-outline"),s=$('[data-page="'+a+'"]').find('[data-head-level="h1"]'),l=$(window).scrollTop()+o;t=s.map(function(){if($(this).offset().top<l)return this}),t=t[t.length-1],n=t&&t.length?t[0].id:"",e!==n&&(e=n,i.removeClass("active"),i.map(function(e,n){$(n).find("outline-item").text()==$(t).attr("data-name")&&$(n).addClass("active")}))}}var C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};n(113),n(147),n(686),n(50),n(685);var _=n(92),A=(r(_),n(7)),N=r(A),S=n(382),j=r(S),O=n(17),z=a(O),T=n(42),R=a(T),M=n(10),I=r(M),P=n(381),L=a(P),D=n(4),B=n(199),F=r(B),U=n(9),H=a(U),W=n(27),G=a(W),Y=n(90),q=a(Y),V=n(24),Q=a(V),X=n(3),K=n(6),Z=a(K),J=n(28),ee=a(J),te=n(89),ne=n(23),ae=r(ne),re=n(33),oe=a(re),ie=n(198),se=r(ie),le=n(131),ce=r(le),de=n(335),pe=r(de),ue=n(340),me=r(ue),fe=n(336),he=r(fe),be=n(342),ge=r(be),ve=n(343),ke=r(ve),we=n(332),ye=r(we),xe=n(331),Ee=r(xe),Ce=n(344),_e=r(Ce),Ae=n(346),Ne=a(Ae),Se=n(339),je=a(Se),Oe=n(197),ze=a(Oe),Te=n(21),Re=n(337),Me=a(Re),Ie=n(36),Pe=a(Ie),$e=n(253),Le=a($e),De=n(56),Be=r(De),Fe=0,Ue={first:!1,update:!1},He={},We=!1;$(window).scroll(function(e){var t=$(e.target),n=t.scrollTop(),a=0-n;n>200&&$(".header").css({opacity:1,visibility:"visible"}),n<=200&&$(".header").css({opacity:0,visibility:"hidden"}),$(".top").css("transform","translate3d(0px, "+a+"px, 0px)"),E()}),window.addEventListener(Z.MESSAGE_ACTION.turn_tab,function(e){var t=e.detail.page;o(t),setTimeout(function(){return x()},200)}),window.addEventListener(Z.MESSAGE_ACTION.welcome_close,function(e){var t=e.detail,n=(t.first,t.version,t.reopen);!n&&(""==Te.auth.token||2!=D.storage.user.rule)&&(new N.default).Render("简悦 2.0 新版首发，<b>高级账户</b> 正在促销中","查看",function(){location.href=location.origin+"/options/options.html#account?mode=upgrade",location.reload()})}),window.location.hash&&(Fe=G.tabsItem.findIndex(function(e){return window.location.hash.startsWith(e.route)})),Fe==-1||0==Fe?Fe=0:G.tabsItem.forEach(function(e,t){return e.active=Fe==t}),X.browser.runtime.onMessage.addListener(function(e,t,n){if(e.type==Z.MESSAGE_ACTION.redirect_uri){var a=e.value,r=a.id,o=a.uri;["pocket","dropbox","evernote","gdrive"].includes(r)?ee[r].Accesstoken(o):"yinxiang"==r?ee.evernote.Accesstoken(o):o.indexOf("state=yuque_authorize")>0?ee.yuque.Accesstoken(o):r.startsWith("http://ksria.com/simpread/auth.html?")&&ee.onenote.Accesstoken(o)}}),D.storage.Read(function(e){i(),s(),c(),p(e),b(),h(),d(e),m(Fe),setTimeout(function(){return g()},500),v(),k(),Le.triggerRender(),y(),x(),ae.default.RemoveDarkComp(),R.Render("body"),z.Render({root:"body"}),1==D.storage.user.rule&&!location.hash.startsWith("#account")&&te.promo.Rule("option")&&setTimeout(function(){return te.promo.Verify(function(){return te.promo.Render()})},2e3),setTimeout(function(){return Me.Render()},1e3),X.browser.runtime.sendMessage(Z.Add(Z.MESSAGE_ACTION.track,{eventCategory:"option",eventAction:"option",eventValue:"option"})),w(),oe.Update("sync")});var Ge=!1}).call(t,n(2),n(13))},21:function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.auth=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),o=n(4),i=function(){function e(){a(this,e),this.uid=void 0,this.finger=void 0,this.getToken(),this.getLock()}return r(e,[{key:"setLock",value:function(e,t,n){var a=this;o.storage.Lock({lock:e,status:t},function(){a.lock=e,a.lock_status=t,n&&n()})}},{key:"getLock",value:function(e){var t=this;o.storage.Lock(void 0,function(n){t.lock=!n||n.lock,t.lock_status=n?n.status:void 0,e&&e()},"read")}},{key:"removeLock",value:function(){this.lock=!1,this.lock_status=void 0,o.storage.Lock(void 0,function(e){},"remove")}},{key:"setToken",value:function(e){this.token=e,o.storage.Token(this.token,function(e){})}},{key:"getToken",value:function(){var e=this;o.storage.Token(void 0,function(t){e.token=t},"read")}},{key:"removeToken",value:function(){this.token=void 0,o.storage.Token(this.token,function(e){},"remove")}},{key:"getFinger",value:function(e){var t=function(e){var t,n,a,r="";for(e+="",t=0,n=e.length;t<n;t++)a=e.charCodeAt(t).toString(16),r+=a.length<2?"0"+a:a;return r},n=function(e){var n=document.createElement("canvas"),a=n.getContext("2d"),r=e;a.textBaseline="top",a.font="14px 'Arial'",a.textBaseline="tencent",a.fillStyle="#f60",a.fillRect(125,1,62,20),a.fillStyle="#069",a.fillText(r,2,15),a.fillStyle="rgba(102, 204, 0, 0.7)",a.fillText(r,4,17);var o=n.toDataURL().replace("data:image/png;base64,",""),i=atob(o),s=t(i.slice(-16,-12));return s};e&&e(n("https://www.baidu.com/"))}},{key:"verifyHeader",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.uid?e?!(!n&&!this.token&&(t({code:403,status:-1010}),1)):(t({code:403,status:-1009}),!1):(t({code:403,status:-1008}),!1)}},{key:"registry",value:function(e){var t=this;this.getFinger(function(n){$.ajax({url:t.endpoint+"/invites/service/authentication/",method:"POST",headers:{finger:n,authentication:t.license,uid:t.uid}}).done(function(t,n,a){e(t)}).fail(function(t){e({code:-1,data:t})})})}},{key:"login",value:function(e){var t=this;this.getFinger(function(n){t.verifyHeader(n,e,!0)&&$.ajax({url:t.endpoint+"/accounts/service/login/",method:"POST",headers:{finger:n,token:t.token,uid:t.uid}}).done(function(t,n,a){e(t)}).fail(function(t){e({code:-1,data:t})})})}},{key:"logout",value:function(e){var t=this;this.getFinger(function(n){t.verifyHeader(n,e)&&$.ajax({url:t.endpoint+"/accounts/service/logout/",method:"POST",headers:{finger:n,token:t.token,uid:t.uid}}).done(function(t,n,a){e(t)}).fail(function(t){e({code:-1,data:t})})})}},{key:"verify",value:function(e){var t=this;this.getFinger(function(n){t.verifyHeader(n,e)&&$.ajax({url:t.endpoint+"/accounts/service/verify/",method:"POST",headers:{finger:n,token:t.token,uid:t.uid}}).done(function(t,n,a){e(t)}).fail(function(t){e({code:-1,data:t})})})}},{key:"reset",value:function(e,t){$.ajax({url:this.endpoint+"/accounts/service/reset/",method:"POST",data:{sn:e}}).done(function(e,n,a){t(e)}).fail(function(e){t({code:-1,data:e})})}},{key:"code",get:function(){return{verify:{"-1":"后台操作异常，请稍后再试。"},login:{"-1":"由于后台异常导致恢复购买失败，请稍后再试。"},logout:{"-1":"登出时出现错误，请稍候再试。"},401:"异常登录，请重新确认。","-1001":"一个账户仅能绑定一个密钥。","-1002":"非法登录，如果因为价格的因素，可以联系管理员。","-1003":"在相同时间内您登录了过多的浏览器，此账户已被锁定，请联系管理员解锁。","-1004":"非法验证，如果因为价格的因素，可以联系管理员。","-1005":"当前账户的权限存在异常，请联系管理员。","-1006":"异常退出，请确保此设备已登录。","-1007":"您使用此账户登录了过多的浏览器，请联系管理员或登出已登录的设备。","-1008":"当前设备出现了授权异常（尤其是刚付费且首次授权时），不要担心，请重启浏览器再重新授权即可。","-1009":"当前设备验证错误，请稍后再试，仍无法验证请联系管理员。","-1010":"当前设备未授权，如您是高级账户请通过恢复购买获取您的权益","-1011":"您还不是高级账户，请先购买高级账户资格"}}},{key:"endpoint",get:function(){return o.storage.service}}]),e}(),s=new i;t.auth=s},31:function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s="rgba(51, 51, 51, .87)",l="rgba(204, 204, 204, 1)",c="rgba(255, 64, 129, 1)",d="rgba(238, 238, 238, 1)",p="rgba(255, 255, 255, 1)",u=function(){var e="block",t="100px",n={hidden:"none",root:{},root_normal:{position:"relative",display:"flex",alignItems:"center",margin:0,padding:0,height:"36px",width:t,lineHeight:1,cursor:"pointer",userSelect:"none"},disable:{color:l,cursor:"not-allowed"},text:{display:e,margin:0,padding:"8px 24px 8px 0",width:"100%",textAlign:"left"},icon:{display:"block",position:"absolute",width:"24px",height:"24px",top:"6px",right:0,border:"none",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:"url( )"},bg:{display:"none",position:"fixed",top:0,left:0,width:"100%",height:"100%"}};return n},m=function(){var e={hidden:"none",root:{},root_normal:{display:"block",position:"absolute",top:0,left:0,margin:0,padding:0,width:"100%",maxHeight:"300px",color:s,backgroundColor:p,boxSizing:"border-box",boxShadow:"0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.2)",borderRadius:"2px",zIndex:2100,overflowY:"auto",opacity:0,transform:"scaleY(0)",transformOrigin:"left top 0px",transition:"transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, opacity 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms"},open:{opacity:1,transform:"scaleY(1)"},list_filed:{display:"flex",alignItems:"center",padding:"8px 24px 8px 16px",height:"36px",width:"100%",textAlign:"left",boxSizing:"border-box",transition:"all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms"},list_filed_icon:{display:"block",width:"18px",height:"18px",margin:"0 10px 0 0",padding:"10px",border:"none",backgroundPosition:"center",backgroundRepeat:"no-repeat"},list_filed_value:{display:"inline",width:"100%",fontSize:"inherit"},list_filed_info:{display:"inline",padding:"0 0 0 16px",fontSize:"13px",textAlign:"right",minWidth:"100px"}};return e},f=function(t){function s(){var e,t,r,o;n(this,s);for(var i=arguments.length,l=Array(i),c=0;c<i;c++)l[c]=arguments[c];return t=r=a(this,(e=s.__proto__||Object.getPrototypeOf(s)).call.apply(e,[this].concat(l))),r.style=m(),o=t,a(r,o)}return r(s,t),i(s,[{key:"onMouseOver",value:function(e){var t=$(e.target);t.is("list-field")&&($("list-field[active=true]").css("background-color","transparent").attr("active",!1),t.attr("active",!0).css("background-color",d))}},{key:"onClick",value:function(e){for(var t=this,n=$(e.target);!n.is("list-field");)n=n.parent();setTimeout(function(){return t.props.onChange&&t.props.onChange(n.find("list-field-name").attr("value"),n.find("list-field-name").text())},130)}},{key:"render",value:function(){var t=this,n=o({},this.style);n.root=this.props.items.length>0?o({},n.root_normal,n.open):o({},n.root_normal);var a=this.props.items.map(function(a,r){var i=o({},n.list_filed_value),s=o({},n.list_filed_icon);return a.icon&&""!=a.icon?s.backgroundImage="url("+a.icon+")":s.display=n.hidden,a.name==t.props.active&&(i.color=c),a.style&&a.style.root&&(n.list_filed=o({},n.list_filed,a.style.root)),a.style&&a.style.icon&&(s=o({},s,a.style.icon)),a.style&&a.style.text&&(i=o({},i,a.style.text)),e.createElement("list-field",{class:t.props.waves,style:n.list_filed,onMouseOver:function(e){return t.onMouseOver(e)},onClick:function(e){return t.onClick(e)}},e.createElement("i",{style:s}),e.createElement("list-field-name",{style:i,value:a.value},a.name))});return e.createElement("list-view",{style:n.root},a)}}]),s}(e.Component);f.defaultProps={waves:"",items:[],active:""},f.propTypes={waves:e.PropTypes.string,items:e.PropTypes.array,active:e.PropTypes.string,onChange:e.PropTypes.func};var h=function(t){function s(){var e,t,r,o;n(this,s);for(var i=arguments.length,l=Array(i),c=0;c<i;c++)l[c]=arguments[c];return t=r=a(this,(e=s.__proto__||Object.getPrototypeOf(s)).call.apply(e,[this].concat(l))),r.state={name:r.props.name},r.style=u(),o=t,a(r,o)}return r(s,t),i(s,[{key:"onClick",value:function(){!this.props.disable&&this.props.items.length>0&&this.setState({items:this.props.items}),!this.props.disable&&this.props.items.length>0&&$(this.refs.bg).css("display","block")}},{key:"bgOnClick",value:function(){$(this.refs.bg).css("display","none"),this.setState({items:[]})}},{key:"onChange",value:function(e,t){this.props.onChange&&this.props.onChange(e,t),this.setState({items:[],name:t}),$(this.refs.bg).css("display","none")}},{key:"render",value:function(){var t=this,n=function(e){return e.sort(function(e,t){return t.name.length-e.name.length}),12*e[0].name.length},a=o({},this.style);if(a.root=this.props.disable?o({},a.root_normal,a.disable):o({},a.root_normal),this.props.disable&&(a.border=o({},a.border,a.border_disable)),this.props.width)a.root.width=this.props.width;else{var r=n(this.props.items)+40;r>=100&&(a.root.width=r+"px")}return e.createElement("dropdown",{style:a.root},e.createElement("span",{style:a.text,onClick:function(){return t.onClick()}},""==this.state.name?this.props.name:this.state.name),e.createElement("icon",{style:a.icon}),e.createElement(f,{waves:this.props.waves,active:this.state.name,items:this.state.items,onChange:function(e,n){return t.onChange(e,n)}}),e.createElement("list-bg",{ref:"bg",style:a.bg,onClick:function(){return t.bgOnClick()}}))}}]),s}(e.Component);h.defaultProps={name:"",disable:!1,width:void 0,items:[],waves:""},h.propTypes={name:e.PropTypes.string,disable:e.PropTypes.bool,
width:e.PropTypes.string,items:e.PropTypes.array,waves:e.PropTypes.string,onChange:e.PropTypes.func},t.default=h}).call(t,n(2))},32:function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s="rgba(51, 51, 51, .87)",l="rgba(204, 204, 204, 1)",c="rgba(245, 245, 245, 1)",d="rgba(0, 137, 123, 1)",p="rgba(189, 189, 189, 1)",u="rgba(0, 137, 123, .5)",m=function(){var e={hidden:"none",root:{display:"flex",alignItems:"center",position:"relative",width:"100%",height:"37px",margin:"8px 0 0 0",padding:0,overflow:"visible"},large_height:"46px",enable:{color:s,cursor:"pointer"},disable:{color:l,cursor:"not-allowed"},label:{display:"block",width:"100%",fontFamily:"sans-serif",fontSize:"14px",fontWeight:400,userSelect:"none",pointerEvents:"none"},label_after:{textAlign:"right",order:2},label_before:{textAlign:"left",order:-1},range:{display:"block",position:"relative",float:"left",flexShrink:0,width:"36px",margin:"0 0 0 8px",padding:"4px 0px 6px 2px",transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},thumb:{},thumb_normal:{display:"block",position:"absolute",top:"1px",left:"0px",width:"20px",height:"20px",color:s,backgroundColor:c,boxShadow:"rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px",boxSizing:"border-box",borderRadius:"50%",transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},thumbed:{left:"100%",marginLeft:"-20px",backgroundColor:d},thumb_disable:{left:0,marginLeft:0,backgroundColor:l},track:{},track_normal:{display:"block",width:"100%",height:"14px",borderRadius:"30px",backgroundColor:p,transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},tracked:{backgroundColor:u},content:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%"},subtitle:{display:"-webkit-box",flexShrink:2,WebkitLineClamp:1,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left",color:"rgba( 51, 51, 51, .54 )"}};return e},f=function(t){function s(){var e,t,r,o;n(this,s);for(var i=arguments.length,l=Array(i),c=0;c<i;c++)l[c]=arguments[c];return t=r=a(this,(e=s.__proto__||Object.getPrototypeOf(s)).call.apply(e,[this].concat(l))),r.state={checked:r.props.checked},r.style=m(),o=t,a(r,o)}return r(s,t),i(s,[{key:"onClick",value:function(){!this.props.disable&&this.setState({checked:!this.state.checked}),!this.props.disable&&this.props.onChange&&this.props.onChange(!this.state.checked)}},{key:"componentWillReceiveProps",value:function(e){this.setState({checked:e.checked})}},{key:"render",value:function(){var t=this,n=o({},this.style);this.props.thumbColor&&(n.thumb_normal.backgroundColor=this.props.thumbColor),this.props.thumbedColor&&(n.thumbed.backgroundColor=this.props.thumbedColor),this.props.trackColor&&(n.track_normal.backgroundColor=this.props.trackColor),this.props.trackedColor&&(n.tracked.backgroundColor=this.props.trackedColor),this.state.checked?(n.thumb=o({},n.thumb_normal,n.thumbed),n.track=o({},n.track_normal,n.tracked)):(n.thumb=o({},n.thumb_normal),n.track=o({},n.track_normal)),this.props.disable?(n.root=o({},n.root,n.disable),n.thumb=o({},n.thumb,n.thumb_disable),n.track=o({},n.track_normal)):n.root=o({},n.root,n.enable),n.label="before"==this.props.order?o({},n.label,n.label_before):o({},n.label,n.label_after),""==this.props.label&&(n.label.display=n.hidden),this.props.width&&(n.root.width=this.props.width),this.props.desc&&(n.root.height=n.root.large_height);var a=this.props.tooltip;return e.createElement("switch",{style:n.root,"data-tooltip":a.text?a.text:this.props[a.target],"data-tooltip-position":a.position,"data-tooltip-delay":a.delay,onClick:function(){return t.onClick()}},e.createElement("content",{style:n.content},e.createElement("span",{style:n.label},this.props.label),e.createElement("subtitle",{style:n.subtitle},this.props.desc)),e.createElement("switch-rang",{style:n.range},e.createElement("thumb",{style:n.thumb,className:this.props.waves}),e.createElement("track",{style:n.track})))}}]),s}(e.Component);f.defaultProps={checked:!1,disable:!1,width:void 0,label:"",order:"before",thumbColor:void 0,thumbedColor:void 0,trackColor:void 0,trackedColor:void 0,desc:"",waves:"",tooltip:""},f.propTypes={checked:e.PropTypes.bool,disable:e.PropTypes.bool,width:e.PropTypes.string,label:e.PropTypes.string,order:e.PropTypes.string,thumbColor:e.PropTypes.string,thumbedColor:e.PropTypes.string,trackColor:e.PropTypes.string,trackedColor:e.PropTypes.string,desc:e.PropTypes.string,waves:e.PropTypes.string,tooltip:e.PropTypes.string,onChange:e.PropTypes.func},t.default=f}).call(t,n(2))},33:function(e,t,n){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=function(e){(new u.default).Render(a[e],"不再提示",function(){h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:e}))})},n=function(e){h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(n){n&&t(e)})},a={klGUASLasg:'检测到当前环境有代码段，请使用      <a target="blank" href="https://simpread.ksria.cn/plugins/details/klGUASLasg">代码增强插件</a> 辅助阅读',VQOZdNET2d:'检测到当前环境有大量的图片，可以使用 <a target="blank" href="https://simpread.ksria.cn/plugins/details/VQOZdNET2d">点击查看大图</a> 辅助阅读',DxlFcL52iy:'如果你想换个论坛类页面风格，可以使用 <a target="blank" href="https://simpread.ksria.cn/plugins/details/DxlFcL52iy">Materail Design 风格</a> 辅助阅读'};$("sr-read").find("pre").length>0&&e.findIndex(function(e){return"klGUASLasg"==e})==-1&&n("klGUASLasg"),$("sr-read").find("img").length>5&&e.findIndex(function(e){return"VQOZdNET2d"==e})==-1&&n("VQOZdNET2d"),"www.zhihu.com"==location.hostname&&location.pathname.startsWith("/question/")&&e.findIndex(function(e){return"DxlFcL52iy"==e})==-1&&n("DxlFcL52iy")}function i(e,t){"statistics"==e&&1==t.read?(new u.default).Render({content:"嗨，很高兴第一次使用简悦的阅读模式，建议看看新手帮助？",action:"我要看",cancel:"老司机",callback:function(e){"action"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:"http://ksria.com/simpread/guide/#readmode"})),"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"readmode"}))}}):"epub"==e?h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:'嗨，简悦内置了 <a target="blank" href="http://ksria.com/simpread/docs/#/Sync?id=epub"><b>原生了 Epub 转换方式</b></a>，请升级为高级账户即刻拥有此功能。',action:"升级",cancel:"不再提示",state:"holdon",callback:function(e){"action"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:h.browser.extension.getURL("options/options.html#account?mode=upgrade")})),"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"epub"}))}})}):"enhance_epub"==e?h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:'嗨，简悦 <b>高级账户</b> 内置了 <a target="blank" href="http://ksria.com/simpread/docs/#/Sync?id=epub"><b>原生了 Epub 转换方式</b></a>，有需要的话请前往开启此功能。',action:"开启",cancel:"不再提示",state:"holdon",callback:function(e){"action"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:h.browser.extension.getURL("options/options.html#connect?anchor=增强导出")})),"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"enhance_epub"}))}})}):"pdf"==e?h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:'嗨，简悦内置了 <a target="blank" href="http://ksria.com/simpread/docs/#/Sync?id=pdf"><b>原生了 PDF 转换方式</b></a>，升级为高级账户即刻拥有此功能。',action:"升级",cancel:"不再提示",state:"holdon",callback:function(e){"action"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:h.browser.extension.getURL("options/options.html#account?mode=upgrade")})),"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"pdf"}))}})}):"enhance_pdf"==e?h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:'嗨，简悦 <b>高级账户</b> 内置了 <a target="blank" href="http://ksria.com/simpread/docs/#/Sync?id=pdf"><b>原生了 PDF 转换方式</b></a> ，有需要的话请前往开启此功能。',action:"开启",cancel:"不再提示",state:"holdon",callback:function(e){"action"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:h.browser.extension.getURL("options/options.html#connect?anchor=增强导出")})),"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"enhance_pdf"}))}})}):"plain"==e?h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:'嗨，简悦 2.1 增加了 <a target="blank" href="http://ksria.com/simpread/docs/#/Sync?id=导出服务"><b>增强导出功能</b></a> 可保存到本地任意位置，升级为高级账户即刻拥有此功能。',action:"升级",cancel:"不再提示",state:"holdon",callback:function(e){"action"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:h.browser.extension.getURL("options/options.html#account?mode=upgrade")})),"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"plain"}))}})}):"enhance_plain"==e?h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:'嗨，简悦 <b>高级账户</b> 内置了 <a target="blank" href="http://ksria.com/simpread/docs/#/Sync?id=导出服务"><b>增强导出功能</b></a> 可保存到本地任意位置。',action:"开启",cancel:"不再提示",state:"holdon",callback:function(e){"action"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:h.browser.extension.getURL("options/options.html#connect?anchor=增强导出")})),"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"enhance_plain"}))}})}):"VQOZdNET2d_disable"==e?h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:"嗨，当选择了 <b>浮动标注栏为点击打开</b> 时下无法使用 <b>点击查看大图</b> 插件。",cancel:"不再提示",state:"holdon",callback:function(e){"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"VQOZdNET2d_disable"}))}})}):"ctrl+c"==e?h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:"嗨，在标注模式下，使用 <b>复制</b> 功能会有复制不完整的情况，建议退出标注模式（支持快捷键）后使用。",cancel:"不再提示",state:"holdon",callback:function(e){"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"ctrl+c"}))}})}):"annote_order"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e}),function(e){e&&(new u.default).Render({type:2,content:"嗨，简悦 2.2 新增了 <b>标注自动排序</b> 功能。",cancel:"不再提示",action:"更改",callback:function(e){"action"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:h.browser.extension.getURL("options/options.html#labs?anchor=标注")})),"cancel"==e&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"annote_order"}))}})})}function s(e){!b&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:"unreader"}),function(t){t&&(new u.default).Render({content:"嗨，欢迎使用 <b>全新的标注及稍后读</b> 系统，建议看看新手帮助？",action:"我要看",cancel:"老司机",callback:function(t){"action"==t&&e&&e(),h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:"unreader"})),b=!1}})}),b=!0}function l(e){var t=function(e){h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips,{code:e,type:"pre-version"}),function(t){t.version&&t.tips&&a(t.version,e)})},n={"2.1.0":{annote:'嗨，<a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html"><b>简悦 2.2.0 ↗</b></a> 标注多种更新，包括：自动排序，浮动工具栏显示方式可更改，可同时导出标注 + 全文等，更多细节 <a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html#annote"><b>请看这里</b></a>。',fap:'嗨，<a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html"><b>简悦 2.2.0 ↗</b></a> 全新的 <b>浮动控制面板</b>：布局更合理，功能更集中，更适合新手用户。</br>可随时切换到 <b>旧版模式</b>（选项页 → 高级设定 → 阅读模式 ）',unreader:'嗨，<a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html"><b>简悦 2.2.0 ↗</b></a> 稍后读大更新，包括：反向链接，知识图谱，Mindmap 查看，离线功能等，更多细节 <a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html#unreader"><b>请看这里</b></a>。',sync:'嗨，<a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html"><b>简悦 2.2.0 ↗</b></a> 同步助手更新，包括：优化扩展端读取速度，读取离线文件，修改 PDF 图片无法显示的问题，Dock 栏图标可隐藏等，更多细节 <a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html#sync"><b>请看这里</b></a>。<br>请使用同步助手的用户 <b>务必更新</b>，<a target="blank" href="http://ksria.com/simpread/docs/#/Sync?id=下载"><b>下载地址 ↗</b>。',option:"<b>全新的选项页</b>，包括：</br>1. <b>导入/导出与同步助手相关的配置文件</b> 放在一处。</br>2. 全新的 <b>服务标签页</b>。</br>3. 除了左侧导航外，还加入了 <b>右侧目录</b> 导航功能。",labs:'<b>简悦 2.2.0 </b> 新增如下功能：</br>1. <b>自动聚焦模式</b>。</br>2. <b>自动暗色模式</b>。</br>3. <b>任意内容生成阅读模式</b>。</br>4. 更易用的 <b>标注</b>，详细说明 <a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html#annote"><b>请看这里</b>。</br>5. 更易用的 <b>稍后读</b>，详细说明 <a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html#unreader"><b>请看这里</b>。</br>6. 整理了 <b>黑名单 / 白名单 / 排除列表</b> 到全局。</br>请通过右侧目录跳转到相应功能。',connect:'全新的 <b>服务标签页</b>，管理简悦全部的导出服务，包括：<b>授权管理</b> · <b>同步助手的增强导出功能 / 发送邮件</b> · <b>定制化 Markdown</b> · <b>API</b> <b>Webhook</b> 等，关于这些功能 <a target="blank" href="http://ksria.com/simpread/docs/#/服务"><b>请看这里 ↗</b></a>。',account:'嗨，<a target="blank" href="https://simpread.pro/welcome/version_2.2.0.html"><b>简悦 2.2.0 ↗</b></a> 用户信息增加了 <b>修改功能</b>，适合 <a target="blank" href="https://github.com/Kenshin/simpread/discussions/1958"><b>找回 UID 后快速绑定 ↗</b></a>。</br>简悦增加了 <b>Newsletter</b>，包括：不定期会推送简悦的用法，版本更新等相关信息，请通过 <b>右侧目录订阅</b>。关于简悦更多的订阅渠道 <a target="blank" href="https://simpread.pro/subscribe"><b>请看这里 ↗</b></a>。'}},a=function(e,t){(new u.default).Render({type:1,content:n[e][t],action:"不再提示",state:"holdon",callback:function(n){"action"==n&&h.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.tips_norepeat,{code:e+"::"+t}))}})};t(e)}function c(e,t){var n=JSON.parse(localStorage["simpread-tips"]||"{}");t(!n[e])}function d(e){var t=JSON.parse(localStorage["simpread-tips"]||"{}");t[e]=!0,localStorage.setItem("simpread-tips",JSON.stringify(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.Annotate=t.Update=t.Help=t.Done=t.Verify=t.Render=void 0;var p=n(7),u=r(p),m=n(6),f=a(m),h=n(3),b=!1;t.Render=o,t.Verify=c,t.Done=d,t.Help=i,t.Update=l,t.Annotate=s},36:function(e,t,n){(function(e){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(t,n,a){g.Popup(E)||t?g.Open(e.createElement(C,{onAction:function(e){return a(e)}}),x):g.Open(e.createElement(_,{token:n,onAction:function(e){return a(e)}}),x),$(".simpread-upgrade-root").on("click",function(e){e.target.className==x&&a("exit"),e.target.className==x&&g.Close()}),y.Render({root:".simpread-upgrade-root"})}Object.defineProperty(t,"__esModule",{value:!0}),t.Render=void 0;var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();n(71),n(66),n(115);var d=n(9),p=r(d),u=n(3),m=n(6),f=r(m),h=n(4),b=n(30),g=r(b),v=n(10),k=a(v),w=n(17),y=r(w),x="simpread-upgrade-root",E="."+x,C=function(t){function n(){return o(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return s(n,t),c(n,[{key:"close",value:function(){$(".simpread-upgrade-root ").removeClass("open"),setTimeout(function(){return g.Close()},400)}},{key:"carousel",value:function(){$(".carousel.carousel-slider").carousel({fullWidth:!0}),setInterval(function(){return $(".carousel.carousel-slider").carousel("next")},5e3)}},{key:"onNavigateClick",value:function(e){$(".carousel.carousel-slider").carousel(e)}},{key:"onUnlockClick",value:function(){u.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:u.browser.extension.getURL("options/options.html#account?mode=upgrade")}))}},{key:"componentDidMount",value:function(){$(".simpread-upgrade-root ").addClass("mini"),setTimeout(function(){$(".simpread-upgrade-root ").addClass("open"),$(".simpread-upgrade-root .floating .billing").addClass("open")},400),this.carousel()}},{key:"render",value:function(){var t=this,n=location.href.startsWith("https")?"https://simpread-1254315611.file.myqcloud.com/static/welcome/":"http://sr.ksria.cn/";return e.createElement(g.Dialog,null,e.createElement(g.Content,null,e.createElement("sr-div",{class:"close"},e.createElement(k.default,{shape:"circle",width:"36px",color:"#fff",backgroundColor:"transparent",icon:p.IconPath("close_icon"),onClick:function(){return t.close()}})),e.createElement("sr-div",{class:"upgrade"},e.createElement("sr-div",{class:"carousels"},e.createElement("div",{className:"carousel carousel-slider","data-indicators":"true"},e.createElement("sr-div",{class:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:p.IconPath("welcome-2","webp")}),e.createElement("sr-div",{class:"descr"},"简悦 · 高级账户"))),e.createElement("sr-div",{class:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:n+"welcome-annoate-pro.webp"}),e.createElement("sr-div",{class:"descr"},"多种标注样式 · 标注拖拽排序"))),e.createElement("sr-div",{class:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:n+"welcome-unreader-backlinks.webp"}),e.createElement("sr-div",{class:"descr"},"稍后读 · 知识图谱"))),e.createElement("sr-div",{class:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:n+"welcome-automated.webp"}),e.createElement("sr-div",{class:"descr"},"自动化"))),e.createElement("sr-div",{class:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:n+"welcome-developer.webp"}),e.createElement("sr-div",{class:"descr"},"API & Webhooks"))),e.createElement("sr-div",{class:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:n+"welcome-synchelper.webp"}),e.createElement("sr-div",{class:"descr"},"同步助手"))),e.createElement("sr-div",{class:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:n+"welcome-synchronisation.webp"}),e.createElement("sr-div",{class:"descr"},"自动同步")))))),e.createElement("sr-div",{class:"floating"},e.createElement("sr-span",{class:"billing md-waves-effect",onClick:function(){return t.onUnlockClick()}},e.createElement("sr-span",null,"马上解锁您的权益"))),e.createElement("footer",null,e.createElement(k.default,{shape:"circle",width:"40px",color:"#fff",backgroundColor:"#4CAF50",icon:p.IconPath("prev_icon"),waves:"md-waves-effect md-waves-button",onClick:function(){return t.onNavigateClick("prev")}}),e.createElement(k.default,{shape:"circle",width:"40px",color:"#fff",backgroundColor:"#4CAF50",icon:p.IconPath("next_icon"),waves:"md-waves-effect md-waves-button",onClick:function(){return t.onNavigateClick("next")}}))))}}]),n}(e.Component),_=function(t){function n(){var e,t,a,r;o(this,n);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return t=a=i(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={base:void 0,pro:void 0,stores:void 0,price:void 0,sales:void 0,floating:void 0},r=t,i(a,r)}return s(n,t),c(n,[{key:"close",value:function(){$(".simpread-upgrade-root ").removeClass("open"),setTimeout(function(){return g.Close()},400)}},{key:"carousel",value:function(){$(".carousel.carousel-slider").carousel({fullWidth:!0}),setInterval(function(){return $(".carousel.carousel-slider").carousel("next")},1e4)}},{key:"onBillingClick",value:function(){$(".pro .pricecard")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},{key:"parseFloating",value:function(t){var n=this;return!this.props.token&&e.createElement("div",{className:"floating"},e.createElement("span",{className:"billing md-waves-effect",onClick:function(){return n.onBillingClick()}},e.createElement("span",null,"马上升级"),e.createElement("span",{className:"sales"},e.createElement("span",{className:"rate"},"立省 "+(100-100*t.discountRate)+"%"),e.createElement("del",null,"¥ "+t.price),e.createElement("span",{className:"price"},"¥ "+parseInt(t.price*t.discountRate)))))}},{key:"parseSales",value:function(t){return e.createElement("span",{className:"discountrate"},e.createElement("span",{className:"rate"},"立省 "+(100-100*t)+"%"))}},{key:"parsePrice",value:function(t){return e.createElement("span",{className:"sales"},e.createElement("span",{className:"desc"},e.createElement("del",null,"¥ "+t.price)),e.createElement("span",{className:"price"},"¥ "+parseInt(t.price*t.discountRate)),e.createElement("span",{className:"countdown"},e.createElement("span",{className:"message"},t.countDown)))}},{key:"parseStore",value:function(t){return e.createElement("div",{className:"dropdown-price"},t.map(function(t){var n=t.tips&&e.createElement("span",{className:"tips"},t.tips);return e.createElement("a",{className:"store md-waves-effect",href:t.link,target:"_blank"},e.createElement("img",{className:"icon",src:t.icon}),e.createElement("span",{className:"names"},e.createElement("span",{className:"name"},t.site),e.createElement("span",{className:"des"},t.desc)),e.createElement("span",{className:"num"},t.price+" 起"," ",n),e.createElement("i",{className:"fas fa-sort-down"}))}))}},{key:"parseFeature",value:function(t){return e.createElement("div",{className:"features diff"},t.map(function(t){var n=t.items&&t.items.map(function(t){if(""==t)return e.createElement("div",{className:"feature empty"});var n=t.endsWith("::feature")?e.createElement("span",{className:"remark"},"即刻推出"):t.endsWith("::roadmap")?e.createElement("span",{className:"remark roadmap"},"马上到来"):void 0;return t=t.replace(/::\w+/gi,""),e.createElement("div",{className:"feature sub"},e.createElement("span",{className:"icon"}),e.createElement("span",{className:"label"},t,n))});return e.createElement("div",null,e.createElement("div",{className:"feature"},e.createElement("span",{className:"icon"},e.createElement("i",{className:"fas fa-"+t.icon})),e.createElement("span",{className:"label"},e.createElement("a",{className:t.link&&"active",href:t.link?t.link:"#",target:"_blank"},t.name))),n)}))}},{key:"getSales",value:function(){var e=this;$.ajax({url:this.props.endpoint+"/sales/service/get/",method:"POST"}).done(function(t,n,a){if(t&&201==t.code){$(".upgrade .features").removeClass("init").find(".loading").remove();var r=e.parseFeature(t.data.base),o=e.parseFeature(t.data.pro),i=e.parseStore(t.data.stores),s=e.parsePrice(t.data),l=e.parseSales(t.data.discountRate),c=e.parseFloating(t.data);e.setState({base:r,pro:o,stores:i,price:s,sales:l,floating:c})}else $(".upgrade .features").removeClass("init").addClass("error").html("<img src="+(location.origin+"/unreader/assets/images/404.svg")+"/>价格获取出现了些问题，稍后再试。")}).fail(function(e){})}},{key:"componentDidMount",value:function(){setTimeout(function(){return $(".simpread-upgrade-root ").addClass("open")},400),!this.props.token&&$(".simpread-upgrade-root dialog-content").on("scroll",function(){event.target.scrollTop>470?$(".simpread-upgrade-root .floating .billing").addClass("open"):$(".simpread-upgrade-root .floating .billing").removeClass("open")}),this.carousel(),this.getSales()}},{key:"render",value:function(){var t=this;return e.createElement(g.Dialog,null,e.createElement(g.Content,null,e.createElement("div",{className:"close"},e.createElement(k.default,{shape:"circle",width:"36px",color:"#fff",backgroundColor:"transparent",icon:p.IconPath("close_icon"),onClick:function(){return t.close()}})),e.createElement("div",{className:"upgrade"},e.createElement("div",{className:"head"},e.createElement("img",{src:u.browser.runtime.getURL("assets/images/icon128.png")}),e.createElement("span",{className:"title"},"简悦 · 高级账户"),!this.props.token&&e.createElement("span",{className:"desc"},"感谢简悦一路有你，从现在开始你可以升级到 ",e.createElement("b",null,"高级账户"),"，来支持我们的开发，以便获得更多的权益与功能。")),e.createElement("div",{className:"carousels"},e.createElement("div",{className:"carousel carousel-slider","data-indicators":"true"},e.createElement("div",{className:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:p.IconPath("welcome-2","webp")}),e.createElement("div",{className:"descr"},"简悦 · 高级账户"))),e.createElement("div",{className:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:"http://sr.ksria.cn/welcome-annoate-pro.webp"}),e.createElement("div",{className:"descr"},"多种标注样式 · 标注拖拽排序"))),e.createElement("div",{className:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:"http://sr.ksria.cn/welcome-unreader-collection.webp"}),e.createElement("div",{className:"descr"},"稍后读 · 合辑"))),e.createElement("div",{className:"carousel-item"},e.createElement("setion",null,e.createElement("img",{src:"http://sr.ksria.cn/welcome-unreader-share.webp"}),e.createElement("div",{className:"descr"},"稍后读 · 分享页"))))),e.createElement("div",{className:"features init"},e.createElement("div",{className:"loading"},e.createElement("span",{dangerouslySetInnerHTML:{__html:this.props.loading}})),e.createElement("div",{className:"base","data-enable":void 0==this.props.token?"true":"false"},e.createElement("div",{className:"pricecard"},e.createElement("span",{className:"discountrate"}),e.createElement("span",{className:"mode"},"基础账户"),e.createElement("span",{className:"sales"},e.createElement("span",{className:"desc"},"¥ 0")),e.createElement("span",{className:"billing md-waves-effect"},"正在使用")),this.state.base),e.createElement("div",{className:"pro","data-enable":void 0!=this.props.token?"true":"false"},e.createElement("div",{className:"pricecard"},this.state.sales,e.createElement("span",{className:"mode"},"高级账户"),this.state.price,e.createElement("span",{className:"billing"},e.createElement("span",null,void 0!=this.props.token?"当前使用":"马上升级"),e.createElement("i",{className:"fas fa-sort-down"}),this.state.stores)),this.state.pro)),e.createElement("div",{className:"ticket"},e.createElement("span",{className:"line"}),e.createElement("div",{className:"notice"},"回报计划"),e.createElement("span",{className:"message"},"简悦从 1.0.3 版开始增加了捐助的入口，感谢每一位请我 ☕ 的朋友，在这里为每个捐助我的用户提供一个福利："),e.createElement("ul",{className:"content"},e.createElement("li",null,"只要你的捐助价格超过（含） 8 元，即可通过此 ",e.createElement("a",{href:"https://wj.qq.com/s2/6773645/5a87/",target:"_blank"},"联系方式")," 获得简悦的终身高级账户。"),e.createElement("li",null,"不满足上述条件且也请过 ☕ 的朋友，可以 ",e.createElement("a",{href:"https://wj.qq.com/s2/6773707/ddf0/",target:"_blank"},"以当前价格 50% 折扣")," 获得终身高级账户。"),e.createElement("li",null,"捐助功能将在简悦 2.0 版发布后下线，请勿再使用捐助方式。"))),e.createElement("div",{className:"ticket"},e.createElement("span",{className:"line"}),e.createElement("div",{className:"notice"},"用户权益"),e.createElement("ul",{className:"content"},e.createElement("li",null,"目前采用买断制，一次性付费后，即可获得简悦终身高级账户一枚。"),e.createElement("li",null,"可登录简悦的不同客户端，不限于扩展端，Web 端等。"),e.createElement("li",null,"可使用最多三台设备，同一账户不能在同一时间同时登录不同设备。"),e.createElement("li",null,"同一账户在同一时间同时登录不同设备的方式视为：非法登录，会锁定当前账户。 "))),e.createElement("div",{className:"ticket"},e.createElement("span",{className:"line"}),e.createElement("div",{className:"notice"},"购买须知"),e.createElement("ul",{className:"content"},e.createElement("li",null,"购买的兑换码只能兑换一次，兑换后即失效。同时兑换时对应的账户（即账户标识），则升级为高级账户，切勿丢失。"),e.createElement("li",null,"简悦从 2.0 版本开始增加了高级账户，但 1.0 版本的功能均永久免费使用。"),e.createElement("li",null,"我知道订阅制模式是维持独立开发者的最好办法，但我们认为不是什么产品都可以使用订阅制模式。"),e.createElement("li",null,"我希望我的产品依旧是简单的一次性付费制。"),e.createElement("li",null,"对于用户来说是一次性付费，但我们需要每年固定为服务器 / 域名等缴费。"),e.createElement("li",null,"为了让简悦持续的良性发展下去以及不想使用订阅制的前提，我们制定了一些不一样的定价规则（请看下方）。"))),e.createElement("div",{className:"ticket"},e.createElement("span",{className:"line"}),e.createElement("div",{className:"notice"},"已购必读"),e.createElement("ul",{className:"content"},e.createElement("li",null,"希望每个购买高级账户的朋友，请前往 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/已购必读",target:"_blank"},"已购必读")," 仔细阅读。"),e.createElement("li",null,"购买后，可前往 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/高级账户?id=如何绑定",target:"_blank"},"说明文档")," 获取绑定说明。"),e.createElement("li",null,"如果在绑定中出现无法绑定的情况，可前往 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/issues/908",target:"_blank"},"常见问题")," 查看。"),e.createElement("li",null,"授权当前设备后如何同步，请前往 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/issues/908",target:"_blank"},"#3/4")," 查看。"),e.createElement("li",null,"如果绑定后丢失 UID（配置文件），可前往 ",e.createElement("a",{href:"https://simpread.pro/code",target:"_blank"},"高级账户自助平台")," 找回。"),e.createElement("li",null,"通过腾讯问卷渠道购买的用户，可前往 ",e.createElement("a",{href:"https://simpread.pro/code",target:"_blank"},"兑换码申领平台")," 自助获取 License。"),e.createElement("li",null,"如果经常遇到 -1003 错误的话，可通过 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/已购必读?id=同时开启多台设备被锁的解决办法",target:"_blank"},"此方式")," 解决。"))),e.createElement("div",{className:"ticket"},e.createElement("span",{className:"line"}),e.createElement("div",{className:"notice"},"定价规则"),e.createElement("ul",{className:"content"},e.createElement("li",null,"为了保障已购用户的权益，我们不会对简悦随意降价打折促销。"),e.createElement("li",null,"简悦的初始定价较低，但随着功能的增加，我们会增加它的定价，涨幅不定。"),e.createElement("li",null,"简悦的价格逐步恢复到原价后不再随意打折。"),e.createElement("li",null,"每年不超过 3次 的打折促销。"),e.createElement("li",null,"我们会不定期的进行微博等社交媒体的抽奖活动。"),e.createElement("li",null,"通过上述方式，希望给用户传达一个信息：",e.createElement("b",null,"无论什么时候，当前都是购买的最佳时期。")))),e.createElement("div",{className:"ticket"},e.createElement("span",{className:"line"}),e.createElement("div",{className:"last"},e.createElement("a",{href:"https://simpread.pro/privacy.html",target:"_blank"},"隐私策略"),e.createElement("a",{href:"https://simpread.pro/agreement.html",target:"_blank"},"用户条款"))))),this.state.floating)}}]),n}(e.Component);_.defaultProps={loading:'<svg version="1.1" id="L9" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve">\n                    <path fill="#333" d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50" transform="rotate(56.1481 50 50)">\n                        <animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="1s" from="0 50 50" to="360 50 50" repeatCount="indefinite"></animateTransform>\n                    </path>\n                  </svg>',endpoint:h.storage.service},t.Render=l}).call(t,n(2))},37:function(e,t){
"use strict";function n(){var e=void 0,t=$.Deferred(),n=function(t){e?(e.removeClass(i),$(t.target).addClass(i)):$(t.target).addClass(i),e=$(t.target)};return $("html").one("click",function(a){if(e)return $(a.target).removeClass(i),$("html").off("mousemove",n),e=void 0,t.resolve(a.target),!1}),$("html").one("keydown",function(t){if(27==t.keyCode&&e)return $("html").find("."+i).removeClass(i),$("html").off("mousemove",n),e=void 0,t.preventDefault(),!1}),$("html").on("mousemove",n),t}function a(e){var t=void 0,n=function(e){t?(t.removeClass(i),$(e.target).addClass(i)):$(e.target).addClass(i),t=$(e.target)},a=function(t){return e(t.target),!1};$("sr-rd-content").on("click",a),$("html").on("keydown",function(e){if(27==e.keyCode&&t)return $("sr-rd-content").find("."+i).removeClass(i),$("sr-rd-content").off("mousemove",n),$("sr-rd-content").off("click",a),t=void 0,e.preventDefault(),!1}),$("sr-rd-content").on("mousemove",n)}function r(){var e=$.Deferred();return $("html").one("mouseup",function(t){var n=void 0;window.getSelection?n=window.getSelection():document.selection&&(n=document.selection.createRange());var a=n;n.text&&(a=n.text),""!=a&&(a=""+a,window.getSelection().removeAllRanges(),e.resolve(a))}),e}function o(e){var t=$(e),n=$.Deferred(),a='<simpread-highlight>\n                        <sr-highlight-ctl class="add"><svg t="1560496884701" viewBox="0 0 1024 1024" version="1.1" width="15" height="15"><defs><style type="text/css"></style></defs><path d="M876.089 439.182h-291.271v-291.271c0-40.268-32.549-72.818-72.818-72.818s-72.818 32.549-72.818 72.818v291.271h-291.271c-40.268 0-72.818 32.549-72.818 72.818s32.549 72.818 72.818 72.818h291.271v291.271c0 40.268 32.549 72.818 72.818 72.818s72.818-32.549 72.818-72.818v-291.271h291.271c40.268 0 72.818-32.549 72.818-72.818s-32.549-72.818-72.818-72.818z" p-id="1998" fill="#ffffff"></path></svg></sr-highlight-ctl>\n                        <sr-highlight-ctl class="sub"><svg t="1560496679351" viewBox="0 0 1024 1024" version="1.1" width="15" height="15"><defs><style type="text/css"></style></defs><path d="M127.289058 490.154459l0 43.770899c0 32.338522 27.009144 57.108672 58.774615 58.734706 0 0 132.448568 13.021571 325.936327 13.021571s325.936327-13.021571 325.936327-13.021571c31.765471-1.626034 58.774615-26.396183 58.774615-58.734706l0-43.770899c0-32.338522-26.51591-57.068763-58.774615-58.734706 0 0-128.005372-12.005428-325.942467-12.005428s-325.930187 12.005428-325.930187 12.005428C153.804968 433.085696 127.289058 457.815937 127.289058 490.154459z" p-id="3204" fill="#ffffff"></path></svg></sr-highlight-ctl>\n                        <sr-highlight-ctl class="done"><svg t="1560496955945" viewBox="0 0 1024 1024" version="1.1" width="15" height="15"><defs><style type="text/css"></style></defs><path d="M416.832 798.08C400.64 798.08 384.512 791.872 372.16 779.52L119.424 525.76C94.784 500.992 94.784 460.8 119.424 436.032 144.128 411.264 184.128 411.264 208.768 436.032L416.832 644.928 814.4 245.76C839.04 220.928 879.04 220.928 903.744 245.76 928.384 270.528 928.384 310.656 903.744 335.424L461.504 779.52C449.152 791.872 432.96 798.08 416.832 798.08Z" p-id="1755" fill="#ffffff"></path></svg></sr-highlight-ctl>\n                        <sr-highlight-ctl class="none"><svg t="1560499513561" viewBox="0 0 1024 1024" version="1.1" width="15" height="15"><defs><style type="text/css"></style></defs><path d="M649.179 512l212.839-212.84c37.881-37.881 37.881-99.298 0-137.179s-99.298-37.881-137.179 0L512 374.821l-212.839-212.84c-37.881-37.881-99.298-37.881-137.179 0s-37.881 99.298 0 137.179L374.821 512 161.982 724.84c-37.881 37.881-37.881 99.297 0 137.179 18.94 18.94 43.765 28.41 68.589 28.41 24.825 0 49.649-9.47 68.589-28.41L512 649.179l212.839 212.84c18.94 18.94 43.765 28.41 68.589 28.41s49.649-9.47 68.59-28.41c37.881-37.882 37.881-99.298 0-137.179L649.179 512z" p-id="1990" fill="#ffffff"></path></svg></sr-highlight-ctl>\n                        <sr-highlight-ctl class="help"><svg t="1560573280563" viewBox="0 0 1024 1024" version="1.1" width="15" height="15"><defs><style type="text/css"></style></defs><path d="M512 958.326255c247.255337 0 447.696462-200.441125 447.696462-447.696462s-200.441125-447.696462-447.696462-447.696462-447.696462 200.441125-447.696462 447.696462S264.74364 958.326255 512 958.326255zM512 217.681788c35.32146 0 63.956637 28.635177 63.956637 63.956637 0 35.323507-28.635177 63.956637-63.956637 63.956637s-63.956637-28.633131-63.956637-63.956637C448.043363 246.316965 476.67854 217.681788 512 217.681788zM448.043363 510.629793c0-35.32146 28.635177-63.956637 63.956637-63.956637s63.956637 28.635177 63.956637 63.956637l0 223.848231c0 35.323507-28.635177 63.956637-63.956637 63.956637s-63.956637-28.633131-63.956637-63.956637L448.043363 510.629793z" p-id="1979" fill="#ffffff"></path></svg></sr-highlight-ctl>\n                  </simpread-highlight>';return t.addClass("simpread-highlight-controlbar"),$("html").append(a),$("html").find("sr-highlight-ctl").on("click",function(e){var a=$(e.currentTarget).attr("class");if("add"==a)t.removeClass("simpread-highlight-controlbar"),t=t.parent(),t.addClass("simpread-highlight-controlbar");else if("sub"==a)t.removeClass("simpread-highlight-controlbar"),t=$(t.children()[0]),t.addClass("simpread-highlight-controlbar");else if("none"==a)t.removeClass("simpread-highlight-controlbar"),$("simpread-highlight").remove();else if("help"==a){var r=$('<a style="display:none" target="_blank" href="http://ksria.com/simpread/docs/#/手动框选"></a>').appendTo("body");r[0].click(),r.remove()}else t.removeClass("simpread-highlight-controlbar"),$("simpread-highlight").remove(),n.resolve(t[0])}),n}Object.defineProperty(t,"__esModule",{value:!0});var i="simpread-highlight-selector";t.Start=n,t.Multi=a,t.Annotate=r,t.Control=o},48:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,"notify-gp{font:300 14px -apple-system,PingFang SC,Microsoft Yahei,Lantinghei SC,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;display:-webkit-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;position:fixed;top:0;right:0;margin:0 15px 0 0;padding:0;text-transform:none;pointer-events:none}notify-gp notify{display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;margin-top:15px;padding:14px 24px;min-width:288px;max-width:568px;min-height:48px;color:hsla(0,0%,100%,.9);background-color:#000;box-sizing:border-box;border-radius:4px;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:left top 0;transform-origin:left top 0;-webkit-transition:all .45s cubic-bezier(.23,1,.32,1) 0ms,opacity 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all .45s cubic-bezier(.23,1,.32,1) 0ms,opacity 1s cubic-bezier(.23,1,.32,1) 0ms;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}notify-gp notify-title{font-size:13px;font-weight:700}notify-gp notify-content{display:block;font-size:14px;font-weight:400;text-align:left;overflow:hidden}notify-gp notify-content a,notify-gp notify-content a:active,notify-gp notify-content a:link,notify-gp notify-content a:visited{margin:inherit;padding-bottom:5px;color:#fff;font-size:inherit;text-decoration:none;-webkit-transition:color .5s;transition:color .5s}notify-gp notify-content a:hover{margin:0;margin:initial;padding:0;padding:initial;color:inherit;font-size:inherit;text-decoration:none}notify-gp notify-i{display:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 10px 0 0;width:24px;height:24px;background-position:50%;background-repeat:no-repeat}notify-gp notify-action,notify-gp notify-cancel{display:none;margin:0 8px;max-width:80px;min-width:56px;height:36px;line-height:34px;color:#bb86fc;font-weight:500;font-size:inherit;text-transform:uppercase;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;cursor:pointer}notify-gp .notify-error notify-action,notify-gp .notify-error notify-cancel,notify-gp .notify-success notify-action,notify-gp .notify-success notify-cancel,notify-gp .notify-warning notify-action,notify-gp .notify-warning notify-cancel{color:#fff}notify-gp notify-action:active,notify-gp notify-cancel:active{border-radius:4px;background-color:rgba(98,0,238,.3)}notify-gp notify-cancel{margin:0}notify-gp notify-a{display:block;position:absolute;top:5px;right:5px;cursor:pointer}notify-gp notify-exit{display:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:5px;width:36px;height:36px;min-width:36px;min-height:36px;background-color:transparent;border-radius:50%;-webkit-transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;cursor:pointer}notify-gp notify-exit:hover{background-color:hsla(0,0%,100%,.4)}notify-gp notify-exit:active{background-color:hsla(0,0%,100%,.2)}notify-gp notify-a notify-span{display:block;width:16px;height:16px;background-image:url();opacity:.9}notify-gp notify-i.holdon{display:block;margin:0 0 0 24px;width:20px;height:20px;background-image:url();cursor:pointer}notify-gp .notify-show{opacity:1;-webkit-transform:scaleY(1)!important;transform:scaleY(1)!important}notify-gp .notify-hide{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp;-webkit-animation-duration:.45s;animation-duration:.45s;-webkit-animation-fill-mode:both;animation-fill-mode:both}notify-gp .notify-success{background-color:#4caf50}notify-gp .notify-warning{background-color:#ffa000}notify-gp .notify-error{background-color:#ef5350}notify-gp .notify-info{background-color:#1976d2}notify-gp .notify-modal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;height:auto;max-height:200px;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)}notify-gp .notify-modal .notify-modal-content{margin-top:5px;font-size:13px;white-space:normal}notify-gp .notify-modal .notify-modal-content a{margin:0;padding:0;color:inherit;font-size:inherit;text-decoration:underline;cursor:pointer}notify-gp .notify-modal .notify-modal-content a:active,notify-gp .notify-modal .notify-modal-content a:focus,notify-gp .notify-modal .notify-modal-content a:hover,notify-gp .notify-modal .notify-modal-content a:visited{color:inherit}notify-gp .notify-snackbar{position:fixed;bottom:0;left:50%;margin-bottom:5px;-webkit-transform-origin:left bottom 0;transform-origin:left bottom 0}.notify-position-lt-corner{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin:0 0 0 15px;left:0;right:auto}.notify-position-lb-corner{margin:0 0 15px 15px;right:auto;left:0}.notify-position-lb-corner,.notify-position-rb-corner{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-flow:column-reverse wrap-reverse;flex-flow:column-reverse wrap-reverse;top:auto;bottom:0}.notify-position-rb-corner{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin:0 15px 15px 0;left:auto;right:0}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{margin-top:0;padding:0;height:0;min-height:0;opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}}@keyframes fadeOutUp{0%{opacity:1}to{margin-top:0;padding:0;height:0;min-height:0;opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}}@media (pointer:coarse){notify-gp{top:auto;bottom:0;left:0;margin:0 10px 10px}notify-gp notify{width:100%;max-width:600px}notify-gp .notify-hide,notify-gp .notify-show{-webkit-transform-origin:bottom!important;transform-origin:bottom!important}notify-gp .notify-snackbar{position:static}}",""])},50:function(e,t,n){var a=n(48);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)},51:function(e,t,n){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){T=e}function i(e){j=e}function s(e,t){var n=JSON.stringify(t.root),a=JSON.stringify(t.all_images),r='<!DOCTYPE html>\n    <html>\n        <head>\n            <meta charset="utf-8">\n            <meta http-equiv="content-type" content="text/html; charset=UTF-8;charset=utf-8">\n            <meta http-equiv="X-UA-Compatible" content="IE=Edge">\n            <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=1">\n            <meta name="author" content="Kenshin"/>\n            <meta name="description" content="简悦 SimpRead - 如杂志般沉浸式阅读体验的扩展" />\n            <meta name="keywords" content="Chrome extension, Chrome 扩展, 阅读模式, 沉浸式阅读, 简悦, 简阅, read mode, reading mode, reader view, firefox, firefox addon, userscript, safari, opera, tampermonkey"/>\n            <meta name="thumbnail" content="https://simpread-1254315611.cos.ap-shanghai.myqcloud.com/static/introduce-2.png"/>\n            <meta property="og:title" content="简悦 SimpRead - 如杂志般沉浸式阅读体验的扩展"/>\n            <meta property="og:type" content="website">\n            <meta property="og:local" content="zh_CN"/>\n            <meta property="og:url" content="http://ksria.com/simpread"/>\n            <meta property="og:image" content="https://simpread-1254315611.cos.ap-shanghai.myqcloud.com/static/introduce-2.png"/>\n            <meta property="og:image:type" content="image/png"/>\n            <meta property="og:image:width" content="960"/>\n            <meta property="og:image:height" content="355"/>\n            <meta property="og:site_name" content="http://ksria.com/simpread"/>\n            <meta property="og:description" content="简悦 SimpRead - 如杂志般沉浸式阅读体验的扩展"/>\n            <title>'+e+'</title>\n            <style>* { margin: 0; padding: 0; } #mindmap { display: block; width: 100vw; height: 100vh;}#mindmap *{font-size:12px!important;font-family:-apple-system,PingFang SC,Microsoft Yahei,Lantinghei SC,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif!important;font-weight:300!important;white-space:pre}#mindmap a{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size:11px;font-weight:400;text-decoration:none;color:#4285f4}#mindmap img{height:100%;max-height:200px}</style>\n            <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism.css">\n            <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">\n        </head>\n        <body>\n            <svg id="mindmap"></svg>\n            <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>\n            <script src="https://cdn.jsdelivr.net/npm/d3@6.6.0"></script>\n            <script src="https://cdn.jsdelivr.net/npm/markmap-view@0.2.3"></script>\n            <script>\n                markmap.Markmap.create( "svg#mindmap", undefined, '+n+");\n                const images = "+a+';\n                $( "svg code" ).map( ( idx, item ) => {\n                    const $target = $( item ),\n                        id      = $target.text().replace( "image-", "" );\n                    $target.parent().html( `\'<img src="${ images[id] }">` );\n                });\n            </script>\n        </body>\n    </html>';return r}function l(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.location.href,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",l=function(){if("string"==typeof n)return"<sr-rd-title>"+e+"</sr-rd-title>\n                    "+(o||""==t?"":'<sr-rd-desc style="margin: 0;padding-top: 0;padding-bottom: 0;font-style: normal;font-size: 18px;">'+t+"</sr-rd-desc>")+"\n                    <sr-rd-content>"+n+"</sr-rd-content>";var a="";return n.forEach(function(e){a+='<sr-rd-title id="title-'+e.unread.idx+'"><a style="color:#195bf7;text-decoration:none;" href="'+e.unread.url+'" target="_blank">'+e.unread.title+"</a></sr-rd-title>\n                         <sr-rd-content>"+e.html+"</sr-rd-content>"}),n=a},c=l(),d=function(){return n.search('pre class="hljs')>-1||n.search('code class="hljs')>-1?'<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css">':""},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="";return n.search("sr-annote")>-1&&$("head").find("style").map(function(n,a){$(a).hasClass(e)&&a.innerText.search("--sr-annote-color-0")>-1&&(t=a.innerText)}),t},u=function(){return n.search("MJX_Assistive_MathML")>-1?".MJX_Assistive_MathML{display: none}":""},m="body {-webkit-print-color-adjust: exact}.simpread-font{font:300 16px/1.8 -apple-system,PingFang SC,Microsoft Yahei,Lantinghei SC,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif;color:#333;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}.simpread-hidden{display:none}.simpread-read-root{display:-webkit-flex;justify-content:center;align-items:center;position:relative;margin:0;top:-1000px;left:0;width:100%;z-index:2147483646;overflow-x:hidden;opacity:0;transition:all 1s cubic-bezier(.23,1,.32,1) .1s}.simpread-read-root-show{top:0}.simpread-read-root-hide{top:1000px}sr-read{margin:0 auto!important;width:100%;max-width:800px;text-align:center;box-sizing:border-box}sr-rd-desc,sr-read{display:block}sr-rd-footer{display:flex;flex-direction:column;font-size:14px}sr-rd-footer-group{display:flex;flex-direction:row;justify-content:center;align-items:center}sr-rd-footer-line{width:100%;border-top:1px solid #e0e0e0}sr-rd-footer-text{min-width:150px}sr-rd-footer-copywrite{margin:10px 0 0;color:inherit}sr-rd-footer-copywrite abbr{font-variant:normal;text-decoration:none}sr-rd-footer-copywrite .second{margin:10px 0}sr-rd-footer-copywrite .third a:hover{border:none!important}sr-rd-footer-copywrite .third a:first-child{margin-right:50px}sr-rd-footer-copywrite .sr-icon{display:inline-flex;justify-content:center;align-items:center;width:33px;height:33px;opacity:.8;transition:opacity .5s ease;cursor:pointer}sr-rd-footer-copywrite .sr-icon:hover{opacity:1}sr-rd-footer-copywrite a,sr-rd-footer-copywrite a:link,sr-rd-footer-copywrite a:visited{margin:0;padding:0;color:inherit;background-color:transparent;font-size:inherit!important;line-height:normal;text-decoration:none;vertical-align:initial;border:none!important;box-sizing:border-box}sr-rd-footer-copywrite a:focus,sr-rd-footer-copywrite a:hover,sr-rd-footer a:active{color:inherit;text-decoration:none;border-bottom:1px dotted!important}.MJX_Assistive_MathML{display: none}",f=r.startsWith("http")?'，<a href="'+r+'" target="_blank">原文地址 </a>':"， 来自 "+r,h='\n                <html lang="en" class="simpread-font simpread-theme-root" style=\''+$("html").attr("style")+'\'>\n                    <head>\n                        <meta charset="utf-8">\n                        <meta http-equiv="content-type" content="text/html; charset=UTF-8;charset=utf-8">\n                        <meta http-equiv="X-UA-Compatible" content="IE=Edge">\n                        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=1">\n                        <meta name="author" content="Kenshin"/>\n                        <meta name="description" content="简悦 SimpRead - 如杂志般沉浸式阅读体验的扩展" />\n                        <meta name="keywords" content="Chrome extension, Chrome 扩展, 阅读模式, 沉浸式阅读, 简悦, 简阅, read mode, reading mode, reader view, firefox, firefox addon, userscript, safari, opera, tampermonkey"/>\n                        <meta name="thumbnail" content="https://simpread-1254315611.cos.ap-shanghai.myqcloud.com/static/introduce-2.png"/>\n                        <meta property="og:title" content="简悦 SimpRead - 如杂志般沉浸式阅读体验的扩展"/>\n                        <meta property="og:type" content="website">\n                        <meta property="og:local" content="zh_CN"/>\n                        <meta property="og:url" content="http://ksria.com/simpread"/>\n                        <meta property="og:image" content="https://simpread-1254315611.cos.ap-shanghai.myqcloud.com/static/introduce-2.png"/>\n                        <meta property="og:image:type" content="image/png"/>\n                        <meta property="og:image:width" content="960"/>\n                        <meta property="og:image:height" content="355"/>\n                        <meta property="og:site_name" content="http://ksria.com/simpread"/>\n                        <meta property="og:description" content="简悦 SimpRead - 如杂志般沉浸式阅读体验的扩展"/>\n                        <style type="text/css">'+(i?"":a.global)+'</style>\n                        <style type="text/css">'+a.common+'</style>\n                        <style type="text/css">'+a.theme+'</style>\n                        <style type="text/css">'+(i?m:"")+'</style>\n                        <style type="text/css">'+(i?"":a.mobile)+'</style>\n                        <style type="text/css">'+(i?"":a.css)+'</style>\n                        <style type="text/css">'+(i?"":a.special)+'</style>\n                        <style type="text/css">'+p()+'</style>\n                        <style type="text/css">'+p("sr-annote-dark-colors")+'</style>\n                        <style type="text/css">'+u()+'</style>\n                        <style type="text/css">'+(o?O.trim():z.trim())+"</style>\n                        "+(j?"<style>sr-rd-content * { color: rgb(235, 235, 235)!important }</style>":"")+"\n                        "+d()+'\n                        <script>setTimeout(()=>{const e=location.hash.replace("#id=","");let t,a=!1;const n=t=>{for(let n of t){let t;if((t=e.length>6?n.getAttribute("data-id"):n.getAttribute("data-idx"))==e){n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),a=!0;break}}};e&&(0==(t=document.getElementsByClassName("sr-unread-card")).length&&(t=document.getElementsByTagName("sr-annote")),n(t),a||n(t=document.getElementsByClassName("sr-annote")))},500);</script>\n                        '+(T?'<script>document.addEventListener("DOMContentLoaded",function(){if("localhost"==location.hostname){const t=document.getElementsByTagName("img");for(let o of t){const t=o.src;t.startsWith("http")&&(o.src=location.origin+"/proxy?url="+t)}}},!1);</script>':"")+"\n                        <title>简悦 | "+e.replace("simpread-","")+"</title>\n                    </head>\n                    <body>\n                        <sr-read style='"+$("sr-read").attr("style")+"'>\n                            "+c+"\n                            "+(s?"<toc-bg>"+s.replace(/color: [a-z0-9(), ]+/gi,"").replace('class="toc-outline-active"',"")+"</toc-bg>":"")+'\n                            <sr-rd-footer>\n                                <sr-rd-footer-group>\n                                    <sr-rd-footer-line></sr-rd-footer-line>\n                                    <sr-rd-footer-text>全文完</sr-rd-footer-text>\n                                    <sr-rd-footer-line></sr-rd-footer-line>\n                                </sr-rd-footer-group>\n                                <sr-rd-footer-copywrite>\n                                    <div>本文由 <a href="http://ksria.com/simpread" target="_blank">简悦 SimpRead</a> 转码，用以提升阅读体验'+f+"</div>\n                                </sr-rd-footer-copywrite>\n                            </sr-rd-footer>\n                        </sr-read>\n                    </body>\n                </html>";return h}function c(e,t,n,a,r){if("object"==("undefined"==typeof a?"undefined":v(a))){var o="";a.forEach(function(e){return o+=e.html}),a=o}var i=e.startsWith("http")?'，<a href="'+e+'" target="_blank">原文地址 </a>':"， 来自 "+e,s=function(){var e="";a.search("sr-annote")>-1&&($("head").find("style").map(function(t,n){n.innerText.search("--sr-annote-color-0")>-1&&(e=n.innerText)}),a=a.replace(/<sr-annote/gi,"<span").replace(/<\/sr-annote>/gi,"</span>"));var t=getComputedStyle(document.documentElement);return e=e.replace(/var\(--sr-annote-color-1\)/gi,t.getPropertyValue("--sr-annote-color-1").trim()).replace(/var\(--sr-annote-color-2\)/gi,t.getPropertyValue("--sr-annote-color-2").trim()).replace(/var\(--sr-annote-color-3\)/gi,t.getPropertyValue("--sr-annote-color-3").trim()).replace(/var\(--sr-annote-color-4\)/gi,t.getPropertyValue("--sr-annote-color-4").trim()).replace(/var\(--sr-annote-color-5\)/gi,t.getPropertyValue("--sr-annote-color-5").trim())},l=function(){a.search("sr-rd-mult")>-1&&(a=a.replace(/<sr-rd-mult-avatar/gi,'<div class="sr-rd-mult-avatar"').replace(/<\/sr-rd-mult-avatar>/gi,"</div>").replace(/<sr-rd-mult-content/gi,'<div class="sr-rd-mult-content"').replace(/<\/sr-rd-mult-content>/gi,"</div>").replace(/<sr-rd-mult/gi,'<span class="sr-rd-mult"').replace(/<\/sr-rd-mult>/gi,"</span>"))};return l(),'<html>\n                <style type="text/css">'+r+'</style>\n                <style type="text/css">'+s()+'</style>\n                <body>\n                    <div class="sr-header">\n                        <a target="_blank" href="https://simpread.pro"><span class="sr-logo"></span><span class="sr-name">简 悦</span></a>\n                        <span class="sr-slogan">「如杂志般沉浸式」的阅读体验</span>\n                    </div>\n                    '+(void 0!=n&&""!=n?'<blockquote class="sr-rd-content-desc">'+n+"</blockquote>":"")+"\n                    <sr-rd-content>"+a+'</sr-rd-content>\n                    <div class="sr-rd-footer">\n                        <div class="sr-rd-footer-group">\n                            <div class="sr-rd-footer-line"></div>\n                            <div class="sr-rd-footer-text">全文完</div>\n                            <div class="sr-rd-footer-line"></div>\n                        </div>\n                        <div class="sr-rd-footer-copywrite">\n                            <div>本文由 <a href="http://ksria.com/simpread" target="_blank">简悦 SimpRead</a> 转码，用以提升阅读体验'+i+"</div>\n                        </div>\n                    </div>\n                </body>\n            </html>"}function d(e,t){N="markdown",A=t,S=e,_=new Map;var n=S.match(/!\[\]\(http\S+\)/gi);n&&n.length>0?(n.forEach(function(e,t){S=S.replace(e,"![][img-"+t+"]"),e=e.replace(/[!\[\]\(]|[\)]/gi,""),S=S+"\r\n\r\n"+("[img-"+t+"]:"+e),_.set(e,"[img-"+t+"]:"+e)}),C=[].concat(r(_.keys())),E=C.length,x=0,u(C[0])):A(S)}function p(e,t){if(N="html",A=e,_=new Map,"object"==("undefined"==typeof t?"undefined":v(t))){var n="";t.forEach(function(e){return n+=e.html}),t=n}var a=void 0;void 0!=t?($("html").append('<sr-annote-tmpl style="display:none">'+t+"</sr-annote-tmpl>"),a=$("sr-annote-tmpl")):a=$("sr-rd-content"),a.find("img").map(function(e,t){_.has(t.src)||_.set(t.src,t)}),C=[].concat(r(_.keys())),E=C.length,x=0,u(C[0])}function u(e){k.browser.runtime.sendMessage(y.Add(y.MESSAGE_ACTION.base64,{url:e}),function(e){x++,e&&e.done&&m(e.done.url,e.done.uri),x<E?u(C[x]):A&&A(S)})}function m(e,t){var n=_.get(e);if("html"==N)$(n).attr("src",t).attr("sr-org-src",e);else{var a=n.replace(e,t);S=S.replace(n,a)}}function f(e,t){fetch(e).then(function(e){return e.blob()}).then(function(n){return new Promise(function(a,r){var o=new FileReader;o.onloadend=function(n){t({done:{url:e,uri:n.target.result}})},o.onerror=function(n){t({fail:{error:n,url:e}})},o.readAsDataURL(n)})}).catch(function(n){t({fail:{error:n,url:e}})})}function h(){$("sr-rd-content").find("img").map(function(e,t){var n=$(t).attr("sr-org-src");$(t).attr("src",n).removeAttr("sr-org-src")}),$("sr-annote-tmpl").remove()}function b(){$("sr-rd-content").find("img").map(function(e,t){var n=$(t).attr("sr-base64-src");$(t).attr("src",n)})}function g(){$("sr-rd-content").find("img").map(function(e,t){var n=$(t).attr("sr-org-src"),a=$(t).attr("src");$(t).attr("src",n).attr("sr-base64-src",a)})}Object.defineProperty(t,"__esModule",{value:!0}),t.restoreBaseImg=t.cacheImg=t.restoreImg=t.toBase64=t.img2Base64=t.Mindmap=t.Markdown=t.Mail=t.HTML=t.setProxy=t.isDarkmode=void 0;var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=n(3),w=n(6),y=a(w),x=0,E=0,C=[],_=void 0,A=void 0,N="html",S=void 0,j=!1,O="html {\n        background-color: #fafafa!important;\n    }\n\n    body {\n        margin: 0;\n        padding: 0;\n    }\n\n    sr-rd-content *, sr-rd-content p, sr-rd-content div {\n        margin: 0;\n        font-size: 13px!important;\n    }\n\n    sr-rd-content {\n        display: flex;\n        flex-direction: column;\n    }\n\n    .annote-preview, .annote-preview * {\n        color:#8F9193;\n    }\n\n    .sr-unread-card {\n        position: relative;\n        display: flex;\n        flex-direction: column;\n        margin: 15px;\n        padding: 15px;\n        color: rgba(51,51,51,0.87);\n        background-color: #fff;\n        font-weight: 400;\n        border-radius: 4px;\n        box-shadow: 0 0 6px 1px rgb(0 0 0 / 8%), 0 8px 8px 0 rgb(0 0 0 / 8%);\n        transition: all 0.25s ease-out;\n    }\n\n    .sr-unread-create {\n        color: #8F9193;\n        font-size: 12px;\n    }\n\n    .sr-unread-refs {\n        display: flex;\n        flex-direction: column;\n    }\n\n    .sr-unread-refs,\n    .sr-unread-note {\n        margin-top: 15px;\n        font-size: 14px!important;\n        font-weight: 400;\n        white-space: pre-wrap;\n        color: #333;\n    }\n\n    .sr-unread-card a {\n        padding-left: 0;\n        font-size: 13px!important;\n    }\n\n    .sr-unread-desc {\n        margin: 15px 0 0 0;\n        padding-left: 10px;\n        font-size: 13px;\n        color: #8F9193;\n        border-left: 2px solid #E6E6E6;\n    }\n\n    .sr-unread-desc img {\n        margin: 0;\n        padding: 0;\n        max-width: 100%!important;\n        height: auto;\n        background: #fff;\n        border: 0;\n        box-shadow: none;\n    }\n\n    .sr-unread-tags {\n        margin: 15px 0 0 0;\n    }\n\n    span.sr-unread-tag {\n        margin-right: 5px;\n        padding: 0 5px;\n        color: #195bf7;\n        background: rgb(25 91 247 / .1);\n        font-style: normal;\n        font-size: 13px;\n        font-weight: bold;\n        border-radius: 3px;\n    }\n\n    .sr-unread-card.backlinks .backlink-field {\n        border-left: 2px solid #E6E6E6!important;\n    }\n\n    .sr-unread-card .backlink-field {\n        margin-bottom: 10px;\n    }\n    .sr-unread-card.backlinks .backlink-field:last-child {\n        margin-bottom: 0;\n    }\n\n    .backlink-field .annotegp {\n        border-left-width: 2px!important;\n    }\n\n    .sr-unread-card.backlinks.annote .backlink-field {\n        border-left-width: 0!important;\n    }\n    \n    .sr-unread-card.backlinks.annote .backlink-fields {\n        margin-top: 15px;\n    }\n\n    .sr-unread-card.backlinks.annote  .backlink-title {\n        padding-left: 10px;\n        font-size: 13px;\n        color: #8F9193;\n        border-left: 2px solid #E6E6E6;\n    }\n    \n    .sr-unread-card.backlinks.annote  .backlink-title .link {\n        margin: 0;\n    }\n\n    .backlink-field .sr-unread-tags,\n    .backlink-field .note,\n    .backlink-field .link {\n        margin-top: 10px;\n    }\n\n    .backlink-field ul, .backlink-field li:last-child {\n        margin-bottom: 0!important;\n    }\n    \n    .backlink-field ul {\n        margin-top: 10px;\n    }\n\n    .backlink-field img {\n        width: 80%;\n    }\n",z="sr-rd-content *, sr-rd-content p, sr-rd-content div {\n        font-size: 15px;\n    }\n\n    .annote-perview, .annote-perview * {\n        color: rgb(85, 85, 85);\n        font-weight: 400;\n        line-height: 1.8;\n    }\n",T=!1;
t.isDarkmode=i,t.setProxy=o,t.HTML=l,t.Mail=c,t.Markdown=d,t.Mindmap=s,t.img2Base64=p,t.toBase64=f,t.restoreImg=h,t.cacheImg=g,t.restoreBaseImg=b},55:function(e,t){"use strict";function n(){var e=0==$(".simpread-focus-highlight").length?$(".simpread-read-root"):$(".simpread-focus-highlight");return o=$.Deferred(),l=!1,e.append("<simpread-snapshot><sr-mask></sr-mask></simpread-snapshot>"),$("simpread-snapshot").on("mousemove",function(e){if(0!=l){s={left:e.clientX,top:e.clientY};var t=s.left-i.left,n=s.top-i.top;c={left:t>=0?i.left:s.left,top:n>=0?i.top:s.top,width:Math.abs(t),height:Math.abs(n)},$(e.currentTarget).find("sr-mask").css(c)}}).on("mousedown",function(e){i={left:e.clientX,top:e.clientY},l=!0}).on("mouseup",function(e){l=!1,r()}),o}function a(){$("html").find("simpread-snapshot").remove()}function r(){if(!($("simpread-snapshot sr-highlight-ctl").length>0)){var e='<sr-snapshot-ctlbar>\n                    <sr-highlight-ctl class="done"><svg t="1560496955945" viewBox="0 0 1024 1024" version="1.1" width="15" height="15"><defs><style type="text/css"></style></defs><path d="M416.832 798.08C400.64 798.08 384.512 791.872 372.16 779.52L119.424 525.76C94.784 500.992 94.784 460.8 119.424 436.032 144.128 411.264 184.128 411.264 208.768 436.032L416.832 644.928 814.4 245.76C839.04 220.928 879.04 220.928 903.744 245.76 928.384 270.528 928.384 310.656 903.744 335.424L461.504 779.52C449.152 791.872 432.96 798.08 416.832 798.08Z" p-id="1755" fill="#ffffff"></path></svg></sr-highlight-ctl>\n                    <sr-highlight-ctl class="none"><svg t="1560499513561" viewBox="0 0 1024 1024" version="1.1" width="15" height="15"><defs><style type="text/css"></style></defs><path d="M649.179 512l212.839-212.84c37.881-37.881 37.881-99.298 0-137.179s-99.298-37.881-137.179 0L512 374.821l-212.839-212.84c-37.881-37.881-99.298-37.881-137.179 0s-37.881 99.298 0 137.179L374.821 512 161.982 724.84c-37.881 37.881-37.881 99.297 0 137.179 18.94 18.94 43.765 28.41 68.589 28.41 24.825 0 49.649-9.47 68.589-28.41L512 649.179l212.839 212.84c18.94 18.94 43.765 28.41 68.589 28.41s49.649-9.47 68.59-28.41c37.881-37.882 37.881-99.298 0-137.179L649.179 512z" p-id="1990" fill="#ffffff"></path></svg></sr-highlight-ctl>\n                    <sr-highlight-ctl class="help"><svg t="1560573280563" viewBox="0 0 1024 1024" version="1.1" width="15" height="15"><defs><style type="text/css"></style></defs><path d="M512 958.326255c247.255337 0 447.696462-200.441125 447.696462-447.696462s-200.441125-447.696462-447.696462-447.696462-447.696462 200.441125-447.696462 447.696462S264.74364 958.326255 512 958.326255zM512 217.681788c35.32146 0 63.956637 28.635177 63.956637 63.956637 0 35.323507-28.635177 63.956637-63.956637 63.956637s-63.956637-28.633131-63.956637-63.956637C448.043363 246.316965 476.67854 217.681788 512 217.681788zM448.043363 510.629793c0-35.32146 28.635177-63.956637 63.956637-63.956637s63.956637 28.635177 63.956637 63.956637l0 223.848231c0 35.323507-28.635177 63.956637-63.956637 63.956637s-63.956637-28.633131-63.956637-63.956637L448.043363 510.629793z" p-id="1979" fill="#ffffff"></path></svg></sr-highlight-ctl>\n                  </sr-snapshot-ctlbar>';$("simpread-snapshot").append(e),$("simpread-snapshot").on("click","sr-highlight-ctl",function(e){var t=$(e.currentTarget).attr("class");if("done"==t)o.resolve(c);else if("none"==t)a();else if("help"==t){var n=$('<a style="display:none" target="_blank" href="http://ksria.com/simpread/docs/#/截图"></a>').appendTo("body");n[0].click(),n.remove()}})}}Object.defineProperty(t,"__esModule",{value:!0});var o=void 0,i=void 0,s=void 0,l=!1,c=void 0;t.Start=n,t.End=a},56:function(e,t,n){var a,r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(i,s){"object"==o(t)&&"undefined"!=typeof e?e.exports=s():(a=s,r="function"==typeof a?a.call(t,n,t,e):a,!(void 0!==r&&(e.exports=r)))}(void 0,function(){"use strict";function e(e){return $.extend(!0,{},e)}function t(e){if(document){var t=document.createElement("a");return t.href=e,t}var n=e.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return n&&{href:e,protocol:n[1],host:n[2],hostname:n[3],port:n[4],pathname:n[5],search:n[6],hash:n[7]}}function n(e){if(""==e)return[0,e];if(r(e))return[2,e];var t=e.match(/<\S+ (class|id)=("|')?[\w-_=;:' ]+("|')?>?$|<[^/][-_a-zA-Z0-9]+>?$/gi);return t&&t.length>0?[1,t]:[-1,void 0]}function a(e){var t=n(e),a=y(t,2),r=a[0],o=a[1];if(2==r)return e;if(1==r){var i=o[0].trim().replace(/['"<>]/g,"").replace(/ /gi,"=").split("="),s=y(i,3),l=s[0],c=s[1],d=s[2];return c?"class"===c.toLowerCase()?c=l+"."+d:"id"===c.toLowerCase()&&(c=l+"#"+d):c=l,c}return null}function r(e){return/^(\[\[)[\[{`'/]{1}[ \S]+[}`'/\]]\]\]{1}($)/g.test(e)}function i(e){var t=[e.replace(/(^)\[\[|\]\]$/g,"")],n=t[0],a=t[1];switch(n[0]){case"{":n=n.replace(/^{|}$/g,""),e=new Function("return "+n)(),a=0;break;case"'":e=(e=n.replace(/^'|'$/g,"")).match(/^<[a-zA-Z0-9_-]+>/g).join("").replace(/<|>/g,"")+":contains("+e.replace(/<[/a-zA-Z0-9_-]+>/g,"")+")",a=1;break;case"/":e=n.replace(/^\/|\/$/g,"").replace(/\\{2}/g,"\\").replace(/'/g,'"'),a=2;break;case"[":n=n.replace(/^{|}$/g,""),e=new Function("return "+n)()[0],a=3;break;case"`":n=l(n=n.replace(/^`|`$/g,"")),e=$(n),a=4;break;default:a=-1}return[e,a]}function s(e){try{if(""!=e.id)return void 0==e.id?"":"//*[@id='"+e.id+"']";if(e===document.body)return"/html[1]/"+e.tagName.toLowerCase();for(var t=0,n=e.parentNode.childNodes,a=0;a<n.length;a++){var r=n[a];if(r===e)return s(e.parentNode)+"/"+e.tagName.toLowerCase()+"["+(t+1)+"]";1===r.nodeType&&r.tagName===e.tagName&&t++}}catch(e){return""}}function l(e){return document.evaluate(e,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}function c(){var e=$("body"),t=!0,n=!1,a=void 0;try{for(var r,o=["[itemprop='articleBody']","article",".post-content",".entry-content",".post-article",".content-post",".article-entry",".article-content",".article-body",".markdown-body",".post",".content"][Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var i=r.value,s=e.find(i);if(s.length>0)return s}}catch(e){n=!0,a=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw a}}return-1}function d(){var e=document.location,t=(e.href,e.host,e.protocol,e.host,e.protocol.substr(0,e.protocol.indexOf(":")),e.protocol,e.host,e.pathname.substr(0,e.pathname.lastIndexOf("/")+1),new _.Readability(document.cloneNode(!0)).parse());return t}function p(n,a,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=function(e){var t=e.replace("www.","").match(/\.\S+\.\S+/g);return t?t[0].substr(1):e.replace("www.","")},s=t(N),l=[].concat(x(a.keys())),c=r.match(/[.a-zA-z0-9-_]+/g)[1].replace("www.",""),d=i(s.hostname),p=function(){return"/"==s.pathname||/\/(default|index|portal).[0-9a-zA-Z]+$/.test(s.pathname)},u=!0,m=!1,f=void 0;try{for(var h,b=l[Symbol.iterator]();!(u=(h=b.next()).done);u=!0){var g=h.value,v=a.get(g).name,k=i(v);g.startsWith("[[/")&&g.endsWith("/]]")&&new RegExp(g.replace(/^\[\[\/|\/\]\]/g,"")).test(location.href)?o.push([g,e(a.get(g)),n]):p()||g.endsWith("*")||g.replace(/^http[s]?:/,"")!=r.replace(/^http[s]?:/,"")?g.match(/\*/g)&&1==g.match(/\*/g).length&&!p()&&g.endsWith("*")&&c.includes(k)&&d==k&&r.includes(v)?o.push([g,e(a.get(g)),n]):C(s.origin+s.pathname,g)&&o.push([g,e(a.get(g)),n]):o.push([g,e(a.get(g)),n])}}catch(e){m=!0,f=e}finally{try{!u&&b.return&&b.return()}finally{if(m)throw f}}}function u(e){if(!e.name||!e.url||!e.include)return-1;if(-1==n(e.title)[0]||-1==n(e.include)[0]||-1==n(e.desc)[0])return-2;if(e.paging){if(2!=e.paging.length)return-3;if(!e.paging[0].prev)return-4;if(!e.paging[1].next)return-5;if(-1==n(e.paging[0].prev)[0]||-1==n(e.paging[1].next)[0])return-6}if(e.avatar){if(2!=e.avatar.length)return-7;if(!e.avatar[0].name)return-8;if(!e.avatar[1].url)return-9;if(-1==n(e.avatar[0].name)[0]||-1==n(e.avatar[1].url)[0])return-10}return 0}function m(e){var t=e.replace('<div id="readability-page-1" class="page">',""),n=$(t)[0],a=n.outerHTML.replace(n.innerHTML,""),r=$(a)[0],o=r.tagName.toLowerCase(),i=r.className;return{id:r.id,cls:i,tag:o}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text",n=$("html");if(r(e)){var a=i(e),o=y(a,2),s=o[0],l=o[1];0==l?e=s:3==l?e=h(n.find(s)):4==l&&(e=s.html())}else"html"==t?e=h(n.find(e)):"multi"==t||(e=n.find(e).text().trim());return e}function h(e){var t="";switch(e.length){case 0:t="<sr-rd-content-error></sr-rd-content-error>";break;case 1:t=e.html().trim();break;default:t=e.map(function(e,t){return $(t).html()}).get().join("<br>")}return t}var b=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},k=function e(t,n,a){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,a)}if("value"in r)return r.value;var i=r.get;return void 0!==i?i.call(a):void 0},w=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=("undefined"==typeof t?"undefined":o(t))&&"function"!=typeof t?e:t},y=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},E={url:"",target:"",matching:[],name:"",title:"",desc:"",exclude:[],include:"",avatar:[],paging:[]},C=void 0,_=void 0,A=void 0,N=void 0,S=function(){function n(){var e,t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{global:[],custom:[],local:[]};b(this,n),this.url=(t=(e="/"!=(e=window.location.pathname)&&e.endsWith("/")?e=e.replace(/\/$/,""):e).replace(/\/[%@#.~a-zA-Z0-9_-]+$|^\/$/g,""),window.location.protocol+"//"+window.location.hostname+t+"/"),this.sites=a,this.current={},this.state="none",this.origins=[],this.mathjax=void 0,N=location.href}return g(n,[{key:"SetURL",value:function(e){var n,a=t(e),r=(n="/"!=(n=a.pathname)&&n.endsWith("/")?n=n.replace(/\/$/,""):n).replace(/\/[%@#.~a-zA-Z0-9_-]+$|^\/$/g,"");this.url=a.protocol+"//"+a.hostname+r+"/",N=e}},{key:"SetMinimatch",value:function(e){C=e}},{key:"SetRdability",value:function(e){_=e}},{key:"SetMarkdown",value:function(e){A=e}},{key:"isMathJax",value:function(){var e=this;return void 0==this.mathjax&&(this.mathjax=!1,$("body").find("script").each(function(t,n){n.type.startsWith("math")&&(e.mathjax=!0)})),this.mathjax}},{key:"MathJaxMode",value:function(){var e=c();if(-1!=e)return this.Newsite("read",e[0].outerHTML),this.dom=e[0],this.state="temp",e;var t=d();if(t&&""!=t.content){var n=m(t.content),a=n.id,r=n.cls,o=n.tag;return""!=a?"<"+o+' id="'+a+'">':""!=r?"<"+o+' class="'+r+'">':void 0}}},{key:"Readability",value:function(){try{var t=d();if(!t||""==t.content)throw"Readability error";this.Newsite("read",t.content,t.excerpt);var n=m(t.wrap),a=n.id,r=n.cls,o=n.tag;this.dom=""!=a?$("body").find("#"+a)[0]:""!=r?$("body").find("."+r.replace(/ /gi,"."))[0]:$("body").find(""+o)[0],this.state="temp"}catch(t){var i=c();-1!=i?(this.Newsite("read",i[0].outerHTML),this.dom=i[0],this.state="temp"):this.current.site=e(E)}}},{key:"Getsite",value:function(e,t){return this.sites[e].find(function(e){return e[0]==t})}},{key:"Getsites",value:function(){var e=this,t=[],n=function(){if(C(location.href,"file://**/*.txt")||C(location.href,"http*://**/*.txt"))return function(){var e=location.pathname.split("/").pop(),t="file:"==location.protocol?"local":"remote",n={name:"txtread::"+t,title:"<title>",desc:"",include:"<pre>",auto:!1,exclude:[]};return"remote"==t&&(n.include="",n.html=$("body pre").html().replace(/\n/gi,"<br>")),!$("title").html()&&$("head").append("<title>"+decodeURI(e.replace(".txt",""))+"</title>"),n}();if($($("body").children()[0]).is("pre")&&(C(location.href,"file://**/*.md")||C(location.href,"http*://**/*.md")))return function(){var e=location.pathname.split("/").pop(),t={name:"txtread::"+("file:"==location.protocol?"local":"remote"),title:"<title>",desc:"",include:"",auto:!1,exclude:[]},n=(new A.default.Converter).makeHtml($("body pre").text());return t.html=n,!$("title").html()&&$("head").append("<title>"+decodeURI(e.replace(".md",""))+"</title>"),t}();var e=/<\S+ (class|id)=("|')?[\w-_=;:' ]+("|')?>?$|<[^/][-_a-zA-Z0-9]+>?$/gi,t={name:$("meta[name='simpread:name']").attr("content"),url:$("meta[name='simpread:url']").attr("content"),title:$("meta[name='simpread:title']").attr("content"),desc:$("meta[name='simpread:desc']").attr("content"),include:$("meta[name='simpread:include']").attr("content"),exp:$("meta[name='simpread:exclude']").attr("content"),auto:$("meta[name='simpread:auto']").attr("content"),exclude:[]};if(t.name&&t.include){if(t.url&&!C(location.href,t.url))return;!t.title&&(t.title="<title>"),!t.desc&&(t.desc=""),!t.exp&&(t.exp=""),t.name="metaread::"+t.name,t.auto="true"==t.auto;var n=["title","desc","include","exp"].findIndex(function(n){return""!=t[n]&&!t[n].match(e)});return t.exclude.push(t.exp),delete t.exp,-1==n?t:void 0}}();if(this.current.url=this.url,n)this.current.auto=n.auto,this.current.url=n.url,delete n.auto,delete n.url,this.current.site=v({},n),this.current.site.name.startsWith("metaread::")&&(this.state="meta"),this.current.site.name.startsWith("txtread::")&&(this.state="txt");else if(p("local",new Map(this.sites.local),this.url,t),p("global",new Map(this.sites.global),this.url,t),p("person",new Map(this.sites.person),this.url,t),p("custom",new Map(this.sites.custom),this.url,t),t.length>0){var a=void 0;if(t.forEach(function(t){t[1].active&&(a=t,e.current.url=a[0],e.current.site=e.Safesite(v({},a[1]),a[2],a[0]),e.state="adapter")}),!a){var r=t[0];r[1].active=!0,this.current.url=r[0],this.current.site=this.Safesite(v({},r[1]),r[2],r[0]),this.state="adapter"}}else{var o=function(){if(location.pathname.includes("thread")||location.pathname.includes("forum.php")){if($(".t_f").length>0&&$(".favatar").find(".authi").length>0&&$(".avatar").find("img").length>0)return{avatar:[{name:"[[{$('.favatar').find('.authi')}]]"},{url:"[[{$('.avatar').find('img')}]]"}],include:"[[{$('.t_f')}]]"}}else if(/\/t\/[\w-]+\/\d+/.test(location.pathname)&&$("meta[name=generator]").attr("content").includes("discourse"))return{avatar:[{name:"[[{$('.topic-avatar').find('.a[data-user-card]')}]]"},{url:"[[{$('.topic-avatar').find('img')}]]"}],include:"[[{$('.cooked')}]]"};return-1}();-1!=o?(this.Newmultisite("read",o),this.state="temp"):this.Readability()}this.current.site.matching=t}},{key:"Addsites",value:function(e){var t=0;if(0==this.sites.global.length)this.sites.global=this.Formatsites(e),t=this.sites.global.length;else{var n=function(e,t){var n=new Map(t),a=[].concat(x(n.keys())),r=0;return e.map(function(e){a.includes(e[0])?a.includes(e[0]):r++}),{count:r,newsites:e}}(this.Formatsites(e),this.sites.global);t=n.count,this.sites.global=n.newsites}return t}},{key:"Addlocalsites",value:function(e){return this.sites.local=[].concat(x(e)),this.sites.local}},{key:"Addallsites",value:function(e){return this.sites={global:[].concat(x(e.global)),person:[].concat(x(e.person)),custom:[].concat(x(e.custom)),local:[].concat(x(e.local))},this.sites}},{key:"Newsite",value:function(e,t,n){var a={mode:e,url:window.location.href,site:{name:"tempread::"+window.location.host,title:"<title>",desc:"[[{$('meta[name=Description]').attr('content')||$('meta[name=description]').attr('content')}]]",include:"",exclude:[]}};t&&(a.site.html=t),this.current.mode=a.mode,this.current.url=a.url,this.current.site=this.Safesite(v({},a.site),"local",a.url),n&&(this.current.site.excerpt=n)}},{key:"Newmultisite",value:function(e,t){var n={mode:e,url:window.location.href,site:{name:"tempread::"+window.location.host,title:"<title>",desc:"",include:t.include,exclude:[],avatar:t.avatar}};this.current.mode=n.mode,this.current.url=n.url,this.current.site=this.Safesite(v({},n.site),"local",n.url)}},{key:"Updatesite",value:function(e,t,n){var a=this.sites[e].findIndex(function(e){return e[0]==t});-1==a&&(a=this.sites[e].length),this.sites[e].splice(a,1,n)}},{key:"Deletesite",value:function(e,t,n){var a=this.sites[e].findIndex(function(e){return e[0]==t});-1!=a&&this.sites[e].splice(a,1),n(a)}},{key:"Safesite",value:function(e,t,n){return e.url=n,e.target=t,""==e.name&&(e.name="tempread::"),(!e.avatar||0==e.avatar.length)&&(e.avatar=[{name:""},{url:""}]),(!e.paging||0==e.paging.length)&&(e.paging=[{prev:""},{next:""}]),e}},{key:"Cleansite",value:function(e){return delete e.url,delete e.html,delete e.target,delete e.matching,e.avatar&&e.avatar.length>0&&""==e.avatar[0].name&&delete e.avatar,e.paging&&e.paging.length>0&&""==e.paging[0].prev&&delete e.paging,e}},{key:"Formatsites",value:function(e){var t=new Map,n=!0,a=!1,r=void 0;try{for(var o,i=e.sites[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value;if(0==u(s)){var l=s.url;delete s.url,t.set(l,s)}}}catch(e){a=!0,r=e}finally{try{!n&&i.return&&i.return()}finally{if(a)throw r}}return[].concat(x(t))}},{key:"Clearsites",value:function(e){e?this.sites[e]=[]:this.sites={global:[],custom:[],local:[]}}},{key:"Origins",value:function(e){var t=e.origins.map(function(e){return e.url});return(t=new Set(this.origins.concat(t))).forEach(function(e){""!=e.trim()&&e.trim().startsWith("http")&&e.trim().endsWith(".json")||t.delete(e)}),this.origins=[].concat(x(t)),this.origins}},{key:"Addorigins",value:function(e){return this.sites.custom=[].concat(x(e)),this.sites.custom}},{key:"Clearorigins",value:function(){var e=this.sites.custom.length;return this.sites.custom=[],e}}]),n}();return function(t){function n(e){b(this,n);var t=w(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.version="0.0.4 build 210524",t.org_url=location.href,t.html={},t.plugin={},t.pure=!1,t.cleanup=!1,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,S),g(n,[{key:"Exist",value:function(){return this.org_url==location.href}},{key:"AddPlugin",value:function(e){this.plugin={minimatch:e.minimatch,pangu:e.pangu,beautify:e.beautify,stylesheet:e.style,rdability:e.rdability,markdown:e.markdown},k(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"SetMinimatch",this).call(this,this.plugin.minimatch),k(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"SetRdability",this).call(this,this.plugin.rdability),k(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"SetMarkdown",this).call(this,this.plugin.markdown)}},{key:"ReadMode",value:function(){var t,n,r,o,i;this.html=(t=this.current.site,n=e(t),r=a(""==t.title?"<title>":t.title),o=a(t.desc),i=a(t.include),n.title=""==t.title||"<title>"==t.title?$("head title").text():f(r),n.desc=function(e){if(void 0==e)return e;var t=e.length,n=e.indexOf("。")+1;return t>100&&(e=n>0?e.substr(0,n):e.substr(0,101)+"......"),e}(t.excerpt?t.excerpt:f(o)),n.include=""==t.include&&""!=t.html?t.html:f(i,"html"),n.avatar&&n.avatar.length>0&&""==n.avatar[0].name&&delete n.avatar,n.paging&&n.paging.length>0&&""==n.paging[0].prev&&delete n.paging,n.avatar&&n.avatar.forEach(function(e){var t=Object.keys(e).join(),n=e[t];e[t]=f(a(n),"html")}),n.paging&&n.paging.forEach(function(e){var t=Object.keys(e).join(),n=e[t];e[t]=f(a(n))}),n)}},{key:"TempMode",value:function(e,t){this.state="temp",this.dom=t,this.Newsite(e,t.outerHTML)}},{key:"GetDom",value:function(e,t){return f(a(e),t)}},{key:"Include",value:function(){var e=this.current.site.include,t=[],n=a(e);try{if(r(n)){var o=i(e),s=y(o,2),l=s[0],c=s[1];0==c?(e=e.replace(/\[\[{\$\(|}\]\]|\).html\(\)/g,""),t=$(i("[[["+e+"]]]")[0])):3==c&&(t=l)}else n&&(t=$("body").find(n))}catch(e){}return t}},{key:"Exclude",value:function(e){return function(e,t){var n=[],o="",s=!0,l=!1,c=void 0;try{for(var d,p=t[Symbol.iterator]();!(s=(d=p.next()).done);s=!0){var u=d.value;if(r(u)){var m=i(u),f=y(m,2),h=f[0],b=f[1];if(1==b)o=h;else if(2==b){var g=e.html().match(new RegExp(h,"g"));if(g&&g.length>0){var v=g.join("");o="*["+v+"]"}else o=void 0}else 3==b?h.remove():4==b&&h.remove()}else o=a(u);o&&n.push(o)}}catch(e){l=!0,c=e}finally{try{!s&&p.return&&p.return()}finally{if(l)throw c}}return n.join(",")}(e,this.current.site.exclude)}},{key:"Beautify",value:function(e){0!=e.children().length&&this.plugin.beautify&&(this.plugin.beautify.specTag(this.current.site.name,e),this.cleanup&&this.plugin.beautify.cleanHTML(e,this.pure,this.isMathJax()),this.plugin.beautify.specbeautify(this.current.site.name,e),this.plugin.beautify.removeSpareTag(this.current.site.name,e),this.plugin.beautify.htmlbeautify(e),this.plugin.beautify.commbeautify(this.current.site.name,e),this.plugin.beautify.imgBrokenReload(e))}},{key:"Format",value:function(e){this.plugin.pangu&&this.plugin.pangu.spacingElementByClassName(e)}},{key:"Utils",value:function(){return{dom2Xpath:s,xPath2Dom:l}}}]),n}()})},64:function(e,t,n){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(){return m}function o(){return m.unshift({name:"Readwise.io",value:"readwise",type:"sync"}),m.unshift({name:"Hypothes.is",value:"hypothes",type:"sync"}),m}function i(e){var t=$.extend(!0,{},$.isEmptyObject(s.storage.simpread.read.actionbar)?c.readItems:s.storage.simpread.read.actionbar),n=void 0;return"hypothes"==e?n={name:e,color:"#6a2c70",icon:'<i class="fas fa-highlighter"></i>'}:"readwise"==e&&(n={name:e,color:"#3f72af",icon:'<i class="fas fa-sync"></i>'}),void 0==n&&void 0!=c.readItems.readlater.items[e]&&(n=t.readlater.items[e]),void 0==n&&void 0!=c.readItems.download.items[e]&&(n=t.download.items[e]),void 0==n&&void 0!=c.readItems.send.items[e]&&(n=t.send.items[e]),void 0==n&&e.startsWith("custom_")&&s.storage.option.export.custom.forEach(function(t){t=JSON.parse(t),"custom_"+t.name==e&&(n=t,n.icon=t.icon?t.icon:'<i class="fas fa-cloud-upload-alt"></i>',n.color="#D4237A")}),void 0==n&&e.startsWith("webhooks_")&&s.storage.option.export.webhooks.forEach(function(t){t=JSON.parse(t),"webhooks_"+t.name==e&&(n=t,n.icon=t.icon?t.icon:'<i class="fas fa-cloud-upload-alt"></i>',n.color="#00BCD4")}),void 0==n&&e.startsWith("webdav_")&&(n={name:e,color:"#00BCD4",icon:p.IconPath("webdav_icon")}),void 0==n&&e.startsWith("automated_")&&s.storage.option.automated.forEach(function(t){"automated_"+t.id==e&&(n=t,n.icon=t.icon,n.color=t.bgColor)}),void 0==n&&(n={name:e,color:"#D4237A",icon:'<i class="fas fa-cloud-upload-alt"></i>'}),n.name=n.name.replace("导出为 ","").replace("保存到 ","").replace("webhook_","").replace("custom_","").replace("webdav_",""),n.icon&&n.icon.startsWith("chrome")&&(n.icon=n.icon.replace(/chrome-extension:\/\/\w+/,"chrome-extension://"+u.browser.runtime.id)),n}Object.defineProperty(t,"__esModule",{value:!0}),t.addSyncService=t.getAllService=t.findService=void 0;var s=n(4),l=n(27),c=a(l),d=n(9),p=a(d),u=n(3),m=[];s.storage.Read(function(){s.storage.Safe(function(){Object.keys(c.readItems.readlater.items).forEach(function(e){!["save"].includes(e)&&m.push({value:e,name:c.readItems.readlater.items[e].name.replace("保存到 ",""),type:"readlater"})}),Object.keys(c.readItems.send.items).forEach(function(e){m.push({value:e,name:c.readItems.send.items[e].name.replace("导出为 ","").replace("保存到 ",""),type:"send"})}),s.storage.secret.webdav.forEach(function(e){try{e=JSON.parse(e),m.push({name:e.name,value:"webdav_"+e.name,type:"webdav"})}catch(e){}}),s.storage.option.export.webhooks.forEach(function(e){try{e=JSON.parse(e),m.push({name:e.name,value:"webhook_"+e.name,type:"webhooks"})}catch(e){}}),Object.keys(c.readItems.download.items).forEach(function(e){m.push({value:e,name:c.readItems.download.items[e].name.replace("导出为 ","").replace("保存到 ",""),type:"download"})}),s.storage.option.export.custom.forEach(function(e){try{e=JSON.parse(e),m.push({name:e.name,value:"custom_"+e.name,type:"custom"})}catch(e){}}),s.storage.option.automated.forEach(function(e){"manual"==e.type&&m.push({name:e.name,value:"automated_"+e.id,type:"automated"})})})}),t.findService=i,t.getAllService=r,t.addSyncService=o},66:function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){var t={init:function(t){var n={duration:200,dist:-100,shift:0,padding:0,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null,onActived:null};return t=e.extend(n,t),this.each(function(n){function a(){"undefined"!=typeof window.ontouchstart&&(D[0].addEventListener("touchstart",u),D[0].addEventListener("touchmove",m),D[0].addEventListener("touchend",f)),D[0].addEventListener("mousedown",u),D[0].addEventListener("mousemove",m),D[0].addEventListener("mouseup",f),D[0].addEventListener("mouseleave",f),D[0].addEventListener("click",d)}function r(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function o(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function i(e){return e>=x?e%x:e<0?i(x+e%x):e}function s(n){S=!0,D.hasClass("scrolling")||D.addClass("scrolling"),null!=L&&window.clearTimeout(L),L=window.setTimeout(function(){S=!1,D.removeClass("scrolling"),D.find(".carousel-item").eq(i(k)),1!=L&&t.onActived&&t.onActived.call(this,e(".carousel .indicators").find(".active").index())},t.duration);var a,r,o,s,l,c,d,p=k;if(v="number"==typeof n?n:v,k=Math.floor((v+y/2)/y),o=v-k*y,s=o<0?1:-1,l=-s*o*2/y,r=x>>1,t.fullWidth?d="translateX(0)":(d="translateX("+(D[0].clientWidth-b)/2+"px) ",d+="translateY("+(D[0].clientHeight-g)/2+"px)"),B){var u=k%x,m=$.find(".indicator-item.active");m.index()!==u&&(m.removeClass("active"),$.find(".indicator-item").eq(u).addClass("active"))}for((!t.noWrap||k>=0&&k<x)&&(c=h[i(k)],e(c).hasClass("active")||(D.find(".carousel-item").removeClass("active"),e(c).addClass("active")),c.style[j]=d+" translateX("+-o/2+"px) translateX("+s*t.shift*l*a+"px) translateZ("+t.dist*l+"px)",c.style.zIndex=0,I=t.fullWidth?1:1-.2*l,c.style.opacity=I,c.style.display="block"),a=1;a<=r;++a)t.fullWidth?(P=t.dist,I=a===r&&o<0?1-l:1):(P=t.dist*(2*a+l*s),I=1-.2*(2*a+l*s)),(!t.noWrap||k+a<x)&&(c=h[i(k+a)],c.style[j]=d+" translateX("+(t.shift+(y*a-o)/2)+"px) translateZ("+P+"px)",c.style.zIndex=-a,c.style.opacity=I,c.style.display="block"),t.fullWidth?(P=t.dist,I=a===r&&o>0?1-l:1):(P=t.dist*(2*a-l*s),I=1-.2*(2*a-l*s)),(!t.noWrap||k-a>=0)&&(c=h[i(k-a)],c.style[j]=d+" translateX("+(-t.shift+(-y*a-o)/2)+"px) translateZ("+P+"px)",c.style.zIndex=-a,c.style.opacity=I,c.style.display="block");if((!t.noWrap||k>=0&&k<x)&&(c=h[i(k)],c.style[j]=d+" translateX("+-o/2+"px) translateX("+s*t.shift*l+"px) translateZ("+t.dist*l+"px)",c.style.zIndex=0,I=t.fullWidth?1:1-.2*l,c.style.opacity=I,c.style.display="block"),p!==k&&"function"==typeof t.onCycleTo){var f=D.find(".carousel-item").eq(i(k));t.onCycleTo.call(this,e(".carousel .indicators").find(".active").index(),f,R)}}function l(){var e,t,n,a;e=Date.now(),t=e-z,z=e,n=v-O,O=v,a=1e3*n/(1+t),N=.8*a+.2*N}function c(){var e,n;_&&(e=Date.now()-z,n=_*Math.exp(-e/t.duration),n>2||n<-2?(s(A-n),requestAnimationFrame(c)):s(A))}function d(n){if(R)return n.preventDefault(),n.stopPropagation(),!1;if(!t.fullWidth){var a=e(n.target).closest(".carousel-item").index(),r=k%x-a;0!==r&&(n.preventDefault(),n.stopPropagation()),p(a)}}function p(e){var n=k%x-e;t.noWrap||(n<0?Math.abs(n+x)<Math.abs(n)&&(n+=x):n>0&&Math.abs(n-x)<n&&(n-=x)),n<0?D.trigger("carouselNext",[Math.abs(n)]):n>0&&D.trigger("carouselPrev",[n])}function u(e){e.preventDefault(),w=!0,R=!1,M=!1,E=r(e),C=o(e),N=_=0,O=v,z=Date.now(),clearInterval(T),T=setInterval(l,100)}function m(e){var t,n,a,i;if(w)if(t=r(e),n=o(e),a=E-t,i=Math.abs(C-n),i<30&&!M)(a>2||a<-2)&&(R=!0,E=t,s(v+a));else{if(R)return e.preventDefault(),e.stopPropagation(),!1;M=!0}if(R)return e.preventDefault(),e.stopPropagation(),!1}function f(e){if(w)return w=!1,clearInterval(T),A=v,(N>10||N<-10)&&(_=.9*N,A=v+_),A=Math.round(A/y)*y,t.noWrap&&(A>=y*(x-1)?A=y*(x-1):A<0&&(A=0)),_=A-v,z=Date.now(),requestAnimationFrame(c),R&&(e.preventDefault(),e.stopPropagation()),!1}var h,b,g,v,k,w,y,x,E,C,_,A,N,S,j,O,z,T,R,M,I,P,$=e('<ul class="indicators"></ul>'),L=null,D=e(this),B=D.attr("data-indicators")||t.indicators;return t.fullWidth&&(t.dist=0,B&&D.find(".carousel-fixed-item").addClass("with-indicators")),D.hasClass("initialized")?(e(window).trigger("resize"),e(this).trigger("carouselNext",[1e-6]),!0):(D.addClass("initialized"),w=!1,v=A=0,h=[],b=D.find(".carousel-item").first().innerWidth(),g=D.find(".carousel-item").first().innerHeight(),y=2*b+t.padding,D.find(".carousel-item").each(function(t){if(h.push(e(this)[0]),B){var n=e('<li class="indicator-item"></li>');0===t&&n.addClass("active"),n.click(function(t){t.stopPropagation();var n=e(this).index();p(n)}),$.append(n)}}),B&&D.append($),x=h.length,j="transform",["webkit","Moz","O","ms"].every(function(e){var t=e+"Transform";return"undefined"==typeof document.body.style[t]||(j=t,!1)}),a(),s(v),e(this).on("carouselNext",function(e,t){void 0===t&&(t=1),A=y*Math.round(v/y)+y*t,v!==A&&(_=A-v,z=Date.now(),requestAnimationFrame(c))}),e(this).on("carouselPrev",function(e,t){void 0===t&&(t=1),A=y*Math.round(v/y)-y*t,v!==A&&(_=A-v,z=Date.now(),requestAnimationFrame(c))}),void e(this).on("carouselSet",function(e,t){void 0===t&&(t=0),p(t)}))})},next:function(t){e(this).trigger("carouselNext",[t])},prev:function(t){e(this).trigger("carouselPrev",[t])},set:function(t){e(this).trigger("carouselSet",[t])}};e.fn.carousel=function(a){return t[a]?t[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==("undefined"==typeof a?"undefined":n(a))&&a?void e.error("Method "+a+" does not exist on jQuery.carousel"):t.init.apply(this,arguments)}}(jQuery)},71:function(e,t,n){var a=n(106);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)},72:function(e,t,n){(function(e,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(t,n,r,o){0==$(".sr-alertgp").length&&$("html").append('<div class="sr-alertgp"></div>'),a.render(e.createElement(d,{state:t,code:n+"",message:r,onAction:function(e){return o(e)}}),$(".sr-alertgp")[0])}Object.defineProperty(t,"__esModule",{value:!0}),t.Render=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,
a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),c=n(3);n(112);var d=function(t){function n(){return r(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return i(n,t),l(n,[{key:"close",value:function(){$(".sr-alertgp .alert").css({"animation-name":"fadeOutDown"}).on("animationend",function(e){a.unmountComponentAtNode($(".sr-alertgp")[0]),$(".sr-alertgp").remove()})}},{key:"onReturnClick",value:function(e){this.props.onAction({state:this.props.state,code:this.props.code,type:e}),this.close()}},{key:"componentDidMount",value:function(){var e=0,t=setInterval(function(){e>=100?(clearInterval(t),t=void 0,e=0,$(".flag img").addClass("swing")):(e+=10,$(".loading .progress .circle").attr("stroke-dasharray",e+", 100"),$(".loading .progress .percentage").text(e+"%"))},200)}},{key:"render",value:function(){var t=this;return e.createElement("sr-alert",{class:"alert notification","data-state":this.props.state},e.createElement("sr-alert-icon",{class:"sr-alert-icon"},e.createElement("sr-alert-load",{class:"loading"},e.createElement("svg",{viewBox:"0 0 36 36",className:"progress"},e.createElement("path",{className:"circle-bg",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),e.createElement("path",{className:"circle",strokeDasharray:"0, 100",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}))),e.createElement("sr-alert-flag",{class:"flag"},e.createElement("img",{src:c.browser.runtime.getURL("assets/images/alert_"+this.props.state+".svg")}))),e.createElement("sr-alert-content",{class:"content"},this.props.message||"当前发生了未知错误，请稍后再试。"),e.createElement("ar-alert-footer",{class:"actionbar"},e.createElement("sr-alert-button",{class:"return md-waves-effect",onClick:function(){return t.onReturnClick("exit")}},"退　出"),["-1002","-1003","-1004","-1005","-1007","-1009"].includes(this.props.code)&&e.createElement("sr-alert-button",{class:"return md-waves-effect",onClick:function(){return t.onReturnClick("contact")}},"联系管理员")))}}]),n}(e.Component);d.defaultProps={state:"",code:-1,message:void 0},t.Render=s}).call(t,n(2),n(13))},74:function(e,t,n){(function(e){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if("user"==e){var t="0123456789abcdefghijklmnopqrstuvwxyz",n=(0,w.default)(t,8),a=(0,w.default)(t,4),r=(0,w.default)(t,4),o=(0,w.default)(t,4),i=(0,w.default)(t,12);return n+"-"+a+"-"+r+"-"+o+"-"+i}return"plugin"==e?(0,w.default)("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",10):"site"==e?(0,w.default)("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",10):"share"==e?(0,w.default)("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",8):void 0}function s(e,t,n){t=e?"https://simpread.ksria.cn/plugins/srplug/"+e+".srplug":t,t+="?"+ +new Date,$.ajax({url:t,dataType:"json"}).done(function(e){return n(e,void 0)}).fail(function(){return n(void 0,"error")})}function l(e,t){window.dispatchEvent(new CustomEvent("simpread-plugin",{detail:{type:e,value:t}}))}function c(t,n,a){try{if(0==a.enable)return;if(a.run_at!=t)return;if(""!=a.site&&!a.site.split(",").includes(n))return;new Function(d(a.script))(),""!=a.style&&b(a.style)}catch(t){(new e).Render(2,"插件 "+a.name+' 运行时出错，可以的话，请 <a href="https://github.com/Kenshin/simpread/issues/new" target="_blank">提交此问题</a> 😁')}}function d(t){return window.Notify=e,window.browser=_.browser,window.current=(0,S.Clone)(S.storage.current),window.read=(0,S.Clone)(S.storage.read),window.highlight=O,window.db=p,window.control=u,window.SRSave=f,window.th=M.default,window.ss=P,window.expt=m,window.srervice=q,window.srwaves=x,window.mduikit=C.default,window.SrvNames=h,window.actionbar=(0,S.Clone)(G.readItems),"( function ( $$version, $read, $title, $desc, $content, $footer, $process, $toc, Notify, $$highlight, browser, $$storage, $$current, $$read, $$control, $$save, $$th, $$export, $$ss, $$service, $$waves, $$ui, $$srvnames, $$actionbar ) {\n        "+t+'\n    })( "0.1.0", $( "sr-read" ), $( "sr-rd-title" ), $( "sr-rd-desc" ), $( "sr-rd-content" ), $( "sr-rd-footer" ), $( "read-process" ), $( "toc" ), Notify, highlight, browser, db, current, read, control, SRSave, th, expt, ss, srervice, srwaves, mduikit, SrvNames, actionbar );'}function p(e,t,n){t?(S.storage.plugstorge[e]=t,N.set(o({},"simpread-plugin-"+e,t),function(){n&&n()})):N.get(["simpread-plugin-"+e],function(t){n&&n(t["simpread-plugin-"+e])})}function u(e,t){t?Y&&window.addEventListener("simpread-plugin_controlbar",function(e){t(e)}):window.dispatchEvent(new CustomEvent("simpread-plugin_controlbar",{detail:{type:e}})),Y=!1}function m(e,t,n,a){window.dispatchEvent(new CustomEvent("simpread-plugin_export",{detail:{type:e,title:t,desc:n,content:a}}))}function f(e,t,n,a){S.storage.simpread[e][t]=n,S.storage.Write(function(){T.SendMessage("option",!0),a&&a()})}function h(e){var t=[];S.storage.Safe(function(){Object.keys(S.storage.secret).forEach(function(e){!["version","webdav"].includes(e)&&t.push({id:e,name:D.Name(e),enable:!!S.storage.secret[e].access_token}),"webdav"==e&&S.storage.secret[e].forEach(function(e){e=JSON.parse(e),t.push({id:"webdav_"+e.name,name:e.name,enable:!0})})}),e&&e(t)})}function b(e){$("head").append('<style type="text/css">'+e+"</style>")}function g(e){var t=!1;if($("fap action-bar").find("sr-opt-label").map(function(n,a){"插件触发器"==$(a).text()&&(t=!0,$(a).next().append(e))}),0==t){var n='<sr-opt-gp>\n                        <sr-opt-label>插件触发器</sr-opt-label>\n                        <actions style="display:flex;margin:10px 0;flex-wrap:wrap;">\n                            '+e+"\n                        </actions>\n                      </sr-opt-gp>";$("fap action-bar").append(n)}}function v(t,n,a){t&&b(t()),n&&n("0.1.0",$("sr-read"),$("sr-rd-title"),$("sr-rd-desc"),$("sr-rd-content"),$("sr-rd-footer"),$("read-process"),$("toc"),e,O,_.browser,p,S.storage.current,S.storage.read,u,f,M.default,m,P,q,x,C.default,h,G.readItems),a&&g(a())}Object.defineProperty(t,"__esModule",{value:!0}),t.Controlbar=t.Event=t.ID=t.Exec=t.Install=void 0;var k=n(108),w=r(k),y=n(17),x=a(y),E=n(91),C=r(E),_=n(3),A=n(118),N=a(A),S=n(4),j=n(37),O=a(j),z=n(24),T=a(z),R=n(23),M=r(R),I=n(9),P=a(I),L=n(28),D=a(L),B=n(55),F=a(B),U=n(51),H=a(U),W=n(27),G=a(W),Y=!0,q={markdown:D.Markdown,download:D.Download,prueDown:D.PrDownload,snapshot:F,toBase64:H.toBase64,img2Base64:H.img2Base64,restoreImg:H.restoreImg};window.simpread={testPlugin:v},t.Install=s,t.Exec=c,t.ID=i,t.Event=l,t.Controlbar=u}).call(t,n(7))},89:function(e,t,n){(function(e){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.promo=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();n(114);var i=n(3),s=n(6),l=a(s),c=!0,d=function(){function t(){var e=this;r(this,t),this.positions={},i.browser.runtime.sendMessage(l.Add(l.MESSAGE_ACTION.promo_storage),function(t){var n=t.promo,a=t.date,r=new Date,o=location.protocol;if("chrome-extension:"==o&&(!n||+r-+new Date(a)>6048e5))e.Remote();else if(n){var i=JSON.parse(n);i.forEach(function(t){e.positions[t.position]=t})}})}return o(t,[{key:"endpoint",get:function(){return"https://simpread-1254315611.file.myqcloud.com/static"}}]),o(t,[{key:"Remote",value:function(){var e=this;$.ajax({url:this.endpoint+"/promo/main.json?"+Math.round(+new Date),method:"GET"}).done(function(t,n,a){t&&t.length>0&&(localStorage.setItem("simpread-promo-storage",JSON.stringify(t)),localStorage.setItem("simpread-promo-date",new Date),t.forEach(function(t){e.positions[t.position]=t}))}).fail(function(e){})}},{key:"Rule",value:function(e,t){if(this.rule=this.positions[e],!this.rule)return!1;if("first"==this.rule.duration&&1==t)return!0;if(this.rule.duration.indexOf("::")>-1){var n=+new Date(this.rule.duration.split("::")[0]),a=+new Date(this.rule.duration.split("::")[1]),r=+new Date;return r>=n&&r<=a}return!1}},{key:"Verify",value:function(e){var t=this;i.browser.runtime.sendMessage(l.Add(l.MESSAGE_ACTION.promo,{id:this.rule.id,type:"read"}),function(n){var a=new Date,r=a.getFullYear(),o=a.getMonth()+1,s=a.getDate(),c=r+"-"+o+"-"+s;"no"!=n&&n!=c&&e(),n&&"no"!=n&&i.browser.runtime.sendMessage(l.Add(l.MESSAGE_ACTION.promo,{type:"write",id:t.rule.id,status:c}))})}},{key:"Close",value:function(){$("sr-promo-bg sr-promo").css({"animation-name":"fadeOutDown"}).on("animationend",function(e){$("sr-promo-bg").remove()})}},{key:"Notify",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var t=this;c&&(new e).Render({content:this.rule.message,action:"查看优惠",cancel:"以后再说",callback:function(e){c=!1,"cancel"==e?t.ShowNext():t.Render()}})})},{key:"ShowNext",value:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate(),r=t+"-"+n+"-"+a;i.browser.runtime.sendMessage(l.Add(l.MESSAGE_ACTION.promo,{type:"write",id:this.rule.id,status:r}))}},{key:"Render",value:function(){var e=this,t=["option","unreader"].includes(this.rule.position)?"body":".simpread-read-root",n="<sr-promo-notice>\n                            <sr-promo-notice-title>关于弹窗的一些简单规则说明</sr-promo-notice-title>\n                            <sr-promo-notice-desc>我知道你（甚至我自己）都不喜欢任何位置的促销，但为了让有需要的朋友知道，所以制定了一些简单并不打扰你的规则：</sr-promo-notice-desc>\n                            <sr-promo-notice-content>1. 由于简悦不会随意所以降价，因此此位置的信息 <b>仅在涨价前弹出</b>。</sr-promo-notice-content>\n                            <sr-promo-notice-content>2. 使用了 <b>不再显示</b> 后，直到有新的涨价信息前都不会打扰到你。</sr-promo-notice-content>\n                            <sr-promo-notice-content>3. 使用了 <b>我再想想</b> 后，只有在新的一天才会出现（仅且一次）。</sr-promo-notice-content>\n                      </sr-promo-notice>",a='<sr-promo-bg data-type="'+this.rule.position+'">\n                        <sr-promo>\n                            <a target="_blank"><img src="'+(this.endpoint+this.rule.banner)+'"/></a>\n                            <sr-promo-footer>\n                                <sr-promo-a class="md-waves-effect later">我再想想</sr-promo-a>\n                                <sr-promo-a class="md-waves-effect cancel">不再展示</sr-promo-a>\n                                <sr-promo-tip class="md-waves-effect">展示规则</sr-promo-tip>\n                            </sr-promo-footer>\n                        </sr-promo>\n                      </sr-promo-bg>';$(t).find("sr-promo-bg").length>0||($(t).append(a),$("sr-promo a").on("click",function(){"internal"==e.rule.link?location.protocol.startsWith("http")?i.browser.runtime.sendMessage(l.Add(l.MESSAGE_ACTION.new_tab,{url:i.browser.extension.getURL("options/options.html#account?mode=upgrade")})):setTimeout(function(){location.href=location.origin+"/options/options.html#account?mode=upgrade",window.dispatchEvent(new CustomEvent(l.MESSAGE_ACTION.turn_tab,{detail:{page:7}})),setTimeout(function(){return $(".card.pro .status.unlock").click()},300)},500):i.browser.runtime.sendMessage(l.Add(l.MESSAGE_ACTION.new_tab,{url:e.rule.link})),$("sr-promo-a.later").click()}),$("sr-promo-a").on("click",function(t){var n=void 0;if($(t.currentTarget).hasClass("later")){var a=new Date,r=a.getFullYear(),o=a.getMonth()+1,s=a.getDate();n=r+"-"+o+"-"+s}else n="no";i.browser.runtime.sendMessage(l.Add(l.MESSAGE_ACTION.promo,{type:"write",id:e.rule.id,status:n})),e.Close()}),$("sr-promo-tip").on("click",function(e){$("sr-promo-tip").hasClass("active")?$("sr-promo-bg sr-promo-notice").css({"animation-name":"fadeOutDown"}).on("animationend",function(e){$("sr-promo-notice").remove(),$("sr-promo-tip").text("展示规则")}):($("sr-promo-bg").append(n),$("sr-promo-tip").text("关闭规则")),$("sr-promo-tip").toggleClass("active")}),this.ShowNext())}}]),t}(),p=new d;t.promo=p}).call(t,n(7))},91:function(e,t){"use strict";var n=function(e){var t=[],n=function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o={href:"javascript:;",type:"raised",mode:"primary",disable:!1,color:"rgba(255, 255, 255, .7)",bgColor:"rgba(0, 137, 123, 1)",shadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2)",css:"",width:"",onclick:void 0},i="rgba( 153, 153, 153, .4)",s={flat:"cursor: no-drop; color: rgba(0, 0, 0, 0.298039);",raised:"cursor: no-drop; color: rgba(0, 0, 0, 0.298039); background-color: rgb(229, 229, 229); box-shadow: none;"},l={flat:"opacity: 0.6;",raised:"backgroundColor: rgba( 153, 153, 153, .2);"};return"flat"==a.type&&(o.color="rgba(0, 137, 123, .8)",o.bgColor="transparent",o.shadow="none"),Object.assign(r,o,a),r.disable=1==r.disable?s[r.type]:"",r.mode="secondary"==r.mode?l[r.type]:"",r.width=void 0!=a.width?"width: "+a.width+";":"",r.onclick&&$("html").on("click","#"+e,r.onclick),r.onclick&&t.push({id:e,event:"click"}),$("html").on("mouseenter","#"+e,function(t){$("a#"+e).find("button-mask").css({"background-color":i})}),$("html").on("mouseleave","#"+e,function(t){$("a#"+e).find("button-mask").css({"background-color":"transparent"})}),t.push({id:e,event:"mouseenter"}),t.push({id:e,event:"mouseleave"}),'<a id="'+e+'" style="display:block;min-width:88px;height:36px;margin:6px;padding:0;font-family:sans-serif;text-decoration:none;cursor:pointer;border:none;border-radius:2px;box-shadow:'+r.shadow+";color:"+r.color+";background-color:"+r.bgColor+";margin-right:0px;"+r.disable+";"+r.width+";"+r.css+';" class="md-waves-effect md-waves-button" href="'+r.href+'" target="_self" type="'+r.type+'">\n                <button-mask style="display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; margin: 0px; padding: 0px 8px; border: medium none; border-radius: 2px; box-sizing: border-box; transition: all 0.5s ease-in-out 0s; background-color: transparent;'+r.mode+'">\n                    <button-span style="display:flex;align-items:center;user-select:none;">\n                        <button-icon style="order:-1;display:none;width:24px;height:24px;border:none;background-position:center;background-repeat:no-repeat;"></button-icon>\n                        <button-text style="padding:0 8px 0;text-decoration:none;text-align:center;letter-spacing:.5px;font-size:15px;line-height:1;">'+n+"</button-text>\n                    </button-span>\n                </button-mask>\n            </a>"},a=function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o={disable:!1,placeholder:"",height:"60px;",width:"100%",size:"14px",color:"rgba(51, 51, 51, .87)",float_color:"rgba(0, 137, 123, 0.8)",state_color:"rgba(0, 137, 123, 0.8)",border_color:"border-top:none rgba(224, 224, 224, 1);border-left:none rgba(224, 224, 224, 1);border-right:none rgba(224, 224, 224, 1);border-bottom:1px solid rgba(224, 224, 224, 1)",error_color:"rgba(244, 67, 54, 1)",css:{float:"",textarea:"",border:"",state:"",error:""},onchange:void 0};return Object.assign(r,o,a),r.disable=1==r.disable?disable[r.type]:"",r.width=void 0!=a.width?"width: "+a.width+";":"",r.height=void 0!=a.height?"height: "+a.height+";":"",$("html").on("focus","#"+e,function(t){$("#field-"+e).find("#state").css({transform:"scaleX(1)"})}),$("html").on("blur","#"+e,function(t){$("#field-"+e).find("#state").css({transform:"scaleX(0)"})}),r.onchange&&$("html").on("keyup","#"+e,r.onchange),r.onchange&&t.push({id:e,event:"keyup"}),t.push({id:e,event:"focus"}),t.push({id:e,event:"blur"}),'<text-field id="field-'+e+'" style="display:block;position:relative;margin:0;padding:0;width:100%;line-height:1;">\n                <text-field-float id="float" style="display: block; position: absolute; margin: -8px 0px 0px; color: '+r.float_color+"; font-size: 14px; font-weight: bold; pointer-events: none; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; transform: scale(0.75) translate(0px, -8px); transform-origin: left top 0px; -moz-user-select: none;"+r.css.float+'"></text-field-float>\n                <textarea id="'+e+'" style="position:relative;color:rgba(51, 51, 51, .87);background-color:transparent;width:100%;height:180px;margin:8px 0 0 0;padding:0;font-family:sans-serif;font-size:'+r.size+";line-height:1.5;cursor:inherit;border:none;outline:none;resize:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-appearance:textfield;color:"+r.color+";"+r.width+";"+r.height+";"+r.css.textarea+';" placeholder="'+r.placeholder+'">'+n+'</textarea>\n                <div>\n                    <text-field-border id="border" style="display:block;width:100%;margin:8px 0 0 0;'+r.border_color+";box-sizing:content-box;"+r.css.border+'"></text-field-border>\n                    <text-field-state id="state" style="display: block; position: absolute; width: 100%; margin: -1px 0px 0px; border-width: medium medium 2px; border-style: none none solid; border-color: '+r.state_color+"; box-sizing: content-box; transform: scaleX(0); transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;"+r.css.state+'"></text-field-state>\n                </div>\n                <text-field-error id="error" style="display:block;position:relative;margin:8px 0 0 0;max-width:428px;font-size:14px;font-weight:bold;line-height:1.5;text-align:initial;word-wrap:break-word;user-select:none;color:'+r.error_color+";transform:scale(0.75) translate( -73px, 0 );"+r.css.error+'"></text-field-error>\n            </text-field>'},r=function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o={disable:!1,placeholder:"",height:"20px;",width:"100%",size:"14px",color:"rgba(51, 51, 51, .87)",float_color:"rgba(0, 137, 123, 0.8)",state_color:"rgba(0, 137, 123, 0.8)",border_color:"border-top:none rgba(224, 224, 224, 1);border-left:none rgba(224, 224, 224, 1);border-right:none rgba(224, 224, 224, 1);border-bottom:1px solid rgba(224, 224, 224, 1)",error_color:"rgba(244, 67, 54, 1)",css:{float:"",textarea:"",border:"",state:"",error:""},onchange:void 0};return Object.assign(r,o,a),r.disable=1==r.disable?disable[r.type]:"",r.width=void 0!=a.width?"width: "+a.width+";":"",r.height=void 0!=a.height?"height: "+a.height+";":"",r.focus=void 0!=a.focus?"autofocus":"",$("html").on("focus","#"+e,function(t){$("#field-"+e).find("#state").css({transform:"scaleX(1)"})}),$("html").on("blur","#"+e,function(t){$("#field-"+e).find("#state").css({transform:"scaleX(0)"})}),r.onchange&&$("html").on("keyup","#"+e,r.onchange),r.onchange&&t.push({id:e,event:"keyup"}),t&&t.push({id:e,event:"focus"}),t&&t.push({id:e,event:"blur"}),'<text-field id="field-'+e+'" style="display:block;position:relative;margin:0;padding:0;width:100%;line-height:1;">\n                <text-field-float id="float" style="display: block; position: absolute; margin: -8px 0px 0px; color: '+r.float_color+"; font-size: 14px; font-weight: bold; pointer-events: none; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; transform: scale(0.75) translate(0px, -8px); transform-origin: left top 0px; -moz-user-select: none;"+r.css.float+'"></text-field-float>\n                <input id="'+e+'" '+r.focus+' style="position:relative;color:rgba(51, 51, 51, .87);background-color:transparent;width:100%;height:20px;margin:8px 0 0 5px;padding:0;font-family:sans-serif;font-size:'+r.size+";line-height:1.5;cursor:inherit;border:none;outline:none;resize:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-appearance:textfield;color:"+r.color+";"+r.width+";"+r.height+";"+r.css.textarea+';" placeholder="'+r.placeholder+'" value="'+n+'">\n                <div>\n                    <text-field-border id="border" style="display:block;width:100%;margin:8px 0 0 0;'+r.border_color+";box-sizing:content-box;"+r.css.border+'"></text-field-border>\n                    <text-field-state id="state" style="display: block; position: absolute; width: 100%; margin: -1px 0px 0px; border-width: medium medium 2px; border-style: none none solid; border-color: '+r.state_color+"; box-sizing: content-box; transform: scaleX(0); transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;"+r.css.state+'"></text-field-state>\n                </div>\n                <text-field-error id="error" style="display:block;position:absolute;margin:8px 0 0 0;max-width:428px;font-size:14px;font-weight:bold;line-height:1.5;text-align:initial;word-wrap:break-word;user-select:none;color:'+r.error_color+";transform:scale(0.75) translate( 0, 0 );"+r.css.error+'"></text-field-error>\n            </text-field>'},o=function(e,n,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={},i={disable:!1,placeholder:"",height:"20px;",width:"100%",size:"14px",color:"rgba(51, 51, 51, .87)",float_color:"rgba(0, 137, 123, 0.8)",state_color:"rgba(0, 137, 123, 0.8)",border_color:"border-top:none rgba(224, 224, 224, 1);border-left:none rgba(224, 224, 224, 1);border-right:none rgba(224, 224, 224, 1);border-bottom:1px solid rgba(224, 224, 224, 1)",error_color:"rgba(244, 67, 54, 1)",hoverColor:"rgba(238, 238, 238, 1)",css:{float:"",textarea:"",border:"",state:"",error:""}},s=function(e){return'<list-field class="" style="display: flex; align-items: center; padding: 8px 24px 8px 16px; height: 36px; width: 100%; text-align: left; box-sizing: border-box; transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms; cursor: pointer; background-color: transparent;" value="'+e+'"><list-field-name style="display:inline;width:100%;font-size:inherit;" value="'+e+'">'+e+"</list-field-name></list-field>"},l=function(t){var n="";t.forEach(function(e){n+=s(e)});var a=""!=n?{opacity:1,transform:"scaleY(1)"}:{opacity:0,transform:"scaleY(0)"};$("#"+e).find("list-view").html(n).css(a)};return Object.assign(o,i,r),o.disable=1==o.disable?disable[o.type]:"",o.width=void 0!=r.width?"width: "+r.width+";":"",o.height=void 0!=r.height?"height: "+r.height+";":"",$("html").on("focus","#"+e,function(t){$("#"+e).find("#state").css({transform:"scaleX(1)"})}),$("html").on("blur","#"+e,function(t){$("#"+e).find("#state").css({transform:"scaleX(0)"})}),$("html").on("mouseover","#"+e+" list-field",function(e){var t=$(e.target);t.is("list-field")&&($("list-field[active=true]").css("background-color","transparent").attr("active",!1),t.attr("active",!0).css("background-color",o.hoverColor))}),$("html").on("click","#"+e+" list-field",function(t){$("#"+e).find("input").val($(t.target).text()),$("#"+e).find("list-view").html("").css({opacity:0,transform:"scaleY(0)"}),$("#"+e).find("icon").attr("data-state","close"),n=$(t.target).text(),o.onchange&&o.onchange($(t.target).text())}),$("html").on("click","#"+e+" icon",function(e){"close"==e.target.dataset.state?(l(a),e.target.dataset.state="open"):(l([]),e.target.dataset.state="close")}),$("html").on("keyup","#"+e,function(t){var n=$("list-view");if(0==n.children().length&&40==t.keyCode)return l(a),void $("#"+e).find("icon").attr("data-state","open");var r=n.find("list-field[active=true]");if(9==t.keyCode||27==t.keyCode)$("#"+e).find("icon").attr("data-state","close"),l([]);else if(40==t.keyCode)0==r.length?n.children().first().attr("active",!0).css("background-color",o.hoverColor):(r.css("background-color","transparent").attr("active",!1),r.next().attr("active",!0).css("background-color",o.hoverColor));else if(38==t.keyCode)0==r.length?n.children().last().attr("active",!0).css("background-color",o.hoverColor):(r.css("background-color","transparent").attr("active",!1),r.prev().attr("active",!0).css("background-color",o.hoverColor));else if(13==t.keyCode)$("#"+e).find("input").val(r.text()),$("#"+e).find("list-view").html("").css({opacity:0,transform:"scaleY(0)"});else{var i=t.target.value,s=a.filter(function(e){return e.toString().includes(i)});l(s)}}),t.push({id:e,event:"focus"}),t.push({id:e,event:"blur"}),t.push({id:e+" list-field",event:"mouseover"}),t.push({id:e+" list-field",event:"click"}),t.push({id:e+" icon",event:"click"}),t.push({id:e,event:"keyup"}),'<auto-complete id="'+e+'" style="display:block;position:relative;margin:0;padding:0;width:100%;line-height:1;">\n                <icon style="display:block;position:absolute;width:24px;height:24px;top:1px;right:0;border:none;background-position:center;background-repeat:no-repeat;background-image:url( );cursor:pointer;z-index:2;" data-state="close"></icon>\n                <text-field-float id="float" style="display: block; position: absolute; margin: -8px 0px 0px; color: '+o.float_color+"; font-size: 14px; font-weight: bold; pointer-events: none; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; transform: scale(0.75) translate(0px, -8px); transform-origin: left top 0px; -moz-user-select: none;"+o.css.float+'"></text-field-float>\n                <input style="position:relative;color:rgba(51, 51, 51, .87);background-color:transparent;width:100%;height:20px;margin:8px 0 0 0;padding:0;font-family:sans-serif;font-size:'+o.size+";line-height:1.5;cursor:inherit;border:none;outline:none;resize:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-appearance:textfield;color:"+o.color+";"+o.width+";"+o.height+";"+o.css.textarea+';" placeholder="'+o.placeholder+'" value="'+n+'">\n                <ac-group>\n                    <text-field-border id="border" style="display:block;width:100%;margin:8px 0 0 0;'+o.border_color+";box-sizing:content-box;"+o.css.border+'"></text-field-border>\n                    <text-field-state id="state" style="display: block; position: absolute; width: 100%; margin: -1px 0px 0px; border-width: medium medium 2px; border-style: none none solid; border-color: '+o.state_color+"; box-sizing: content-box; transform: scaleX(0); transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;"+o.css.state+'"></text-field-state>\n                </ac-group>\n                <list-view style="display: block; position: absolute; top: 40px; left: 0px; margin: 0px; padding: 0px; width: 100%; max-height: 400px; color: rgba(51, 51, 51, 0.87); background-color: rgb(255, 255, 255); box-sizing: border-box; box-shadow: rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px, rgba(0, 0, 0, 0.2) 0px 5px 5px -3px; border-radius: 2px; z-index: 2100; overflow-y: auto; opacity: 0; transform: scaleY(0); transform-origin: left top 0px; transition: transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, opacity 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms; overflow-x: hidden;" >\n                </list-view>\n            </auto-complete>'},i=function(e,t,n,a,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{style:{header:"",content:"",footer:""}},i={open:{opacity:1,transform:"translateY(0px)"},close:{opacity:0,transform:"translateY(1000px)"},bg:"position: fixed;top: 0px;left: 0px;display: flex;justify-content: center;align-items: center;width: 100%;height: 100%;color: rgb(255, 255, 255);text-shadow: rgba(0, 0, 0, 0.3) 0px 1px;opacity: 0;transform: translateY(1000px);transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms;z-index: 2147483646;",root:"display: -webkit-flex;flex-direction: column;margin: 0;padding: 0;min-width: 480px;min-height: 300px;color: rgba(0, 0, 0, 0.870588);background-color: rgb(255, 255, 255);border-radius: 3px;box-sizing: border-box;box-shadow: rgba(0, 0, 0, 0.247059) 0px 14px 45px, rgba(0, 0, 0, 0.219608) 0px 10px 18px;",header:"display: block;padding: 24px 24px 20px 24px;min-height: 25px;line-height: 25px;font-size: 21px;font-weight: 500;color: #fff;background-color: rgb(100, 181, 246);",content:"display: block;padding: 24px 24px 0;width: 100%;min-height: 244px;max-height: 580px;overflow-y: auto;box-sizing: border-box;",footer:"display: -webkit-flex;flex-flow: row nowrap;justify-content: flex-end;width: 100%;min-height: 52px;box-sizing: border-box;"};return r.open=function(e){setTimeout(function(){return $("mduikit-dialog-gp#"+e).css(i.open)},200)},r.close=function(e){$("mduikit-dialog-gp#"+e).css(i.close),setTimeout(function(){return $("mduikit-dialog-gp#"+e).remove()},200)},'<mduikit-dialog-gp id="'+e+'" style="'+i.bg+'">\n                <diglog style="'+i.root+'">\n                    <dialog-header  style="'+(i.header+o.style.header)+'">'+t+'</dialog-header>\n                    <dialog-content style="'+(i.content+o.style.content)+'">'+n+'</dialog-content>\n                    <dialog-footer  style="'+(i.footer+o.style.footer)+'">'+a+"</dialog-footer>\n                </diglog>\n            </mduikit-dialog-gp>"},s=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments[2],r=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i={},s={width:"",thumb:"",track:"",thumbColor:"rgb(63, 81, 181)",trackColor:"rgb(121, 134, 203)",onclick:void 0},l={open:{thumb:{"margin-left":"-20px",left:"100%","background-color":o.thumbColor||s.thumbColor},track:{"background-color":o.trackColor||s.trackColor}},close:{thumb:{"margin-left":"initial",left:"0","background-color":"rgb(245, 245, 245)"},track:{"background-color":"rgb(189, 189, 189)"}}};return Object.assign(i,s,o),i.width=void 0!=o.width?"width: "+o.width+";":"",n&&(i.thumb=JSON.stringify(l.open.thumb).replace(/{|}/gi,"").replace(/","/gi,";").replace(/":"/gi,":").replace(/"/gi,"")),n&&(i.track=JSON.stringify(l.open.track).replace(/{|}/gi,"").replace(/","/gi,";").replace(/":"/gi,":").replace(/"/gi,"")),!i.css&&(i.css={}),$("html").on("click","#"+e,function(t){$("switch#"+e).find("switch-rang").hasClass("active")?($("switch#"+e).find("thumb").css(l.close.thumb),$("switch#"+e).find("track").css(l.close.track)):($("switch#"+e).find("thumb").css(l.open.thumb),$("switch#"+e).find("track").css(l.open.track)),$("switch#"+e).find("switch-rang").toggleClass("active"),n=!n,i.onclick&&i.onclick(t,n)}),t.push({id:e,event:"click"}),'<switch id="'+e+'" style="display:flex;align-items:center;position:relative;width:100%;'+i.width+";margin:8px 0 0 0;padding:0;overflow:visible;color:rgba(51, 51, 51, .87);cursor:pointer;"+(i.css.root||"")+';">\n                <content style="display:flex;flex-direction:column;align-items:flex-start;width:100%;'+(i.css.content||"")+';">\n                    <title style="display:block;width:100%;font-family:sans-serif;font-size:14px;font-weight:400;user-select:none;pointer-events:none;text-align:left;order:-1;'+(i.css.title||"")+';">'+a+'</title>\n                    <subtitle style="display:-webkit-box;flex-shrink:2;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-align:left;color:rgba( 51, 51, 51, .54 );'+(i.css.subtitle||"")+';">'+(r||"")+'</subtitle>\n                </content>\n                <switch-rang class="'+(n?"active":"")+'" style="display:block;position:relative;float:left;flex-shrink:0;width:36px;margin:0 0 0 8px;padding:4px 0px 6px 2px;transition:all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;">\n                    <thumb style="display: block; position: absolute; top: 1px; left: 0px; width: 20px; height: 20px; color: rgba(51, 51, 51, 0.87); background-color: rgb(245, 245, 245); box-shadow: rgba(0, 0, 0, 0.118) 0px 1px 6px, rgba(0, 0, 0, 0.118) 0px 1px 4px; box-sizing: border-box; border-radius: 50%; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;'+i.thumb+';" class="md-waves-effect"></thumb>\n                    <track style="display: block; width: 100%; height: 14px; border-radius: 30px; background-color: rgb(189, 189, 189); transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;'+i.track+';"></track>\n                </switch-rang>\n            </switch>';
},l=function(e,n,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={},i={height:"20px;",width:"100%",size:"14px",color:"rgba(51, 51, 51, .87)",hoverColor:"rgba(238, 238, 238, 1)",css:{float:"",textarea:"",border:"",state:"",error:""}},s={open:{list:{opacity:1,transform:"scaleY(1)"},bg:{display:"block"}},close:{list:{opacity:0,transform:"scaleY(0)"},bg:{display:"none"}}},l=function(e){var t=e.name,a=e.value;return'<list-field class="" style="display: flex; align-items: center; padding: 8px 24px 8px 16px; height: 36px; width: 100%; text-align: left; box-sizing: border-box; transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms; background-color: transparent;">\n                    <i style="display:none;width:18px;height:18px;margin:0 10px 0 0;padding:10px;border:none;background-position:center;background-repeat:no-repeat;"></i>\n                    <list-field-name style="display:inline;width:100%;font-size:inherit;'+(n==t?"color: rgba(255, 64, 129, 1);":"")+'" value="'+a+'">'+t+"</list-field-name>\n                </list-field>"},c=function(t){var n="";t.forEach(function(e){n+=l(e)}),$("dropdown#"+e).find("list-view").html(n)};return Object.assign(o,i,r),o.width=void 0!=r.width?"width: "+r.width+";":"",$("html").on("mouseover","#"+e+" list-field",function(e){var t=$(e.target);t.is("list-field")&&($("list-field[active=true]").css("background-color","transparent").attr("active",!1),t.attr("active",!0).css("background-color",o.hoverColor))}),$("html").on("click","#"+e+" list-field",function(t){var a=$(t.currentTarget).find("list-field-name"),r=a.text(),i=a.attr("value");$("dropdown#"+e).find("sr-span").text(r),$("dropdown#"+e).find("icon").attr("data-state","close"),$("dropdown#"+e).find("list-view").css(s.close.list),$("dropdown#"+e).find("list-bg").css(s.close.bg),n=r,o.onchange&&o.onchange(i,r)}),$("html").on("click","#"+e+" list-bg",function(){$("dropdown#"+e).find("icon").attr("data-state","close"),$("dropdown#"+e).find("list-view").css(s.close.list),$("dropdown#"+e).find("list-bg").css(s.close.bg)}),$("html").on("click","#"+e+" icon",function(t){"close"!=t.target.dataset.state&&t.target.dataset.state?(c([]),t.target.dataset.state="close",$("dropdown#"+e).find("list-view").css(s.close.list),$("dropdown#"+e).find("list-bg").css(s.close.bg)):(c(a),t.target.dataset.state="open",$("dropdown#"+e).find("list-view").css(s.open.list),$("dropdown#"+e).find("list-bg").css(s.open.bg))}),t.push({id:e+" list-field",event:"mouseover"}),t.push({id:e+" list-field",event:"click"}),t.push({id:e+" list-bg",event:"click"}),t.push({id:e+" icon",event:"click"}),'<dropdown id="'+e+'" style="position:relative;display:flex;align-items:center;margin:0;padding:0;height:36px;width:80px;line-height:1;cursor:pointer;user-select:none;'+o.width+";"+o.height+';">\n                <sr-span style="display:block;margin:0;padding:8px 24px 8px 0;width:100%;text-align:left;">'+n+'</sr-span>\n                <icon style="display:block;position:absolute;width:24px;height:24px;top:6px;right:0;border:none;background-position:center;background-repeat:no-repeat;background-image:url( );"></icon>\n                <list-view style="display:block;position:absolute;top:0;left:0;margin:0;padding:0;width:100%;max-height:300px;color:rgba(51, 51, 51, .87);background-color:rgba(255, 255, 255, 1);box-sizing:border-box;box-shadow:0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.2);border-radius:2px;z-index:2100;overflow-y:auto;opacity:0;transform:scaleY(0);transform-origin:left top 0px;transition:transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, opacity 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms;"></list-view>\n                <list-bg style="display:none;position:fixed;top:0;left:0;width:100%;height:100%;"></list-bg>\n            </dropdown>'},c=function(){t.forEach(function(e){return $("html").off(e.event,"#"+e.id)}),t=[]},d=function(e){t.forEach(function(t){return t.id.startsWith(e)&&$("html").off(t.event,"#"+t.id)})};return e.Button=n,e.Textarea=a,e.TextField=r,e.AutoComplete=o,e.Dialog=i,e.Switch=s,e.Dropdown=l,e.Destory=c,e.DestoryById=d,e}({});e.exports=n},102:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,"@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fadeOutDown{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.sr-alertgp{position:fixed;left:0;top:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;background-color:rgba(51,51,51,.8);z-index:2147483647}.sr-alertgp .alert{min-width:400px;min-height:400px;width:650px;background-color:#fff;border-radius:4px;box-shadow:0 14px 45px rgba(0,0,0,.247059);-webkit-animation-name:fadeInUp;animation-name:fadeInUp;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.sr-alertgp .alert,.sr-alertgp .alert .loading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.sr-alertgp .alert .loading{position:relative;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;height:35%;background-color:transparent}.alert .loading .progress{display:block;margin:10px auto;max-width:80%;max-height:250px;width:20%}.alert .loading .progress .percentage{fill:#666;font-family:sans-serif;font-size:.5em;text-anchor:middle}.alert .loading .progress .circle-bg{fill:none;stroke:#eee;stroke-width:3.8}.alert .loading .progress .circle{fill:none;stroke-width:2.8;stroke-linecap:round;stroke:#1dba90;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}@-webkit-keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.sr-alertgp .alert .close{position:absolute;top:0;right:0;z-index:2}.sr-alertgp .alert .close:hover{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:all .25s ease-out;transition:all .25s ease-out}.sr-alertgp .alert .sr-alert-icon img{max-width:650px;width:100%;-webkit-transform:scale(.7);transform:scale(.7);-webkit-transition:all .5s ease-out;transition:all .5s ease-out}.sr-alertgp .alert .actionbar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:20px;width:80%;height:50px;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.sr-alertgp .alert .actionbar,.sr-alertgp .alert.notification{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sr-alertgp .alert.notification{width:500px;min-height:350px}.sr-alertgp .alert.notification[data-state=siren]{background-image:-webkit-radial-gradient(circle farthest-corner at 10% 20%,#cd212a 0,#ec5f05 90%);background-image:radial-gradient(circle farthest-corner at 10% 20%,#cd212a 0,#ec5f05 90%)}.sr-alertgp .alert.notification[data-state=lock]{background-image:-webkit-radial-gradient(circle farthest-corner at 10% 20%,#8451a1 0,rgba(132,81,161,.83) 90%);background-image:radial-gradient(circle farthest-corner at 10% 20%,#8451a1 0,rgba(132,81,161,.83) 90%)}.sr-alertgp .alert.notification[data-state=warning]{background-image:-webkit-linear-gradient(left,#f2709c,#ff9472);background-image:linear-gradient(90deg,#f2709c,#ff9472)}.sr-alertgp .alert.notification[data-state=bug]{background-image:-webkit-linear-gradient(bottom,#ad5389,#3c1053);background-image:linear-gradient(0deg,#ad5389,#3c1053)}.sr-alertgp .alert.notification[data-state=safe],.sr-alertgp .alert.notification[data-state=server]{background-color:#8ec5fc;background-image:-webkit-linear-gradient(28deg,#8ec5fc,#e0c3fc);background-image:linear-gradient(62deg,#8ec5fc,#e0c3fc)}.sr-alertgp .alert.notification .sr-alert-icon{position:relative;width:100%}.sr-alertgp .alert.notification .loading .progress{padding:5px;background-color:#fff;border-radius:50%}.sr-alertgp .alert.notification .loading .progress .circle-bg{stroke:transparent}.sr-alertgp .alert.notification .loading .progress .circle{stroke-width:1}.sr-alertgp .alert.notification[data-state=siren] .loading .progress .circle{stroke:#cd212a}.sr-alertgp .alert.notification[data-state=lock] .loading .progress .circle{stroke:#8451a1}.sr-alertgp .alert.notification[data-state=warning] .loading .progress .circle{stroke:#f2709c}.sr-alertgp .alert.notification[data-state=bug] .loading .progress .circle{stroke:#ad5389}.sr-alertgp .alert.notification[data-state=safe] .loading .progress .circle,.sr-alertgp .alert.notification[data-state=server] .loading .progress .circle{stroke:#8ec5fc}.sr-alertgp .alert.notification .content{padding:10px 70px;width:100%;color:#fff;text-align:center;font-size:28.8px;font-size:1.8rem;box-sizing:border-box}.sr-alertgp .alert.notification .flag{position:absolute;left:0;top:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;z-index:100000}.sr-alertgp .alert.notification .flag img{width:50px}.sr-alertgp .alert.notification[data-state=lock] .flag img{width:30px}.sr-alertgp .alert.notification .flag img.swing{-webkit-transform-origin:center;transform-origin:center;-webkit-animation-name:swing;animation-name:swing;-webkit-animation-duration:1s;animation-duration:1s}.sr-alertgp .alert.notification .actionbar{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around;margin:0}.sr-alertgp .alert.notification .return{padding:5px 32px;color:#333;background-color:#fff;font-size:15px;font-weight:700;border-radius:56px}.sr-alertgp .alert.notification .return:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}",""])},103:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,"@import url(https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500&display=swap);",""]),t.push([e.id,'*{box-sizing:border-box}html{font:300 16px/1.8 -apple-system,PingFang SC,Microsoft Yahei,Lantinghei SC,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif;font-size:62.5%;color:#333;background:#fff;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}body{margin:0;padding:0;background-color:#fafafa}a{color:#4285f4;text-decoration:none}input,textarea{font-family:DIN-Regular,Bookerly,Georgia,-apple-system,PingFang SC,Microsoft Yahei,Lantinghei SC,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif!important}kbd{display:inline-block;padding:3px 5px;font-size:11px;line-height:10px;color:#444d56;vertical-align:middle;background-color:#fafbfc;border:1px solid #c6cbd1;border-bottom-color:#959da5;border-radius:3px;box-shadow:inset 0 -1px 0 #959da5}@-webkit-keyframes fadeOutDown{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.loadingbar{position:fixed;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;width:100%;background-color:#fafafa;z-index:200}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.topnav{position:fixed;z-index:200;left:12px;top:12px}.header .nav.right,.topnav.right{position:absolute;left:auto;right:12px;z-index:20000}.header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:fixed;top:0;left:0;width:100%;height:65px;background-color:#000;box-shadow:0 2px 5px rgba(0,0,0,.26);opacity:0;-webkit-transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;z-index:1000}.header .nav,.header .title{margin-left:12px}.header .title{color:#fff;height:48px;font-size:20px;font-size:2rem;font-weight:700;line-height:48px}.top{position:fixed;top:0;left:0;width:100%;height:249px;background-color:#2196f3;overflow:hidden;-webkit-transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;transition:all .45s cubic-bezier(.23,1,.32,1) 0ms}.main{position:relative;top:200px;margin:0 auto;margin-bottom:24px;padding:0;max-width:832px;width:832px;background-color:#fff;text-align:center;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 2px rgba(0,0,0,.26)}.tabscontainer{width:100%;color:inherit}.tabscontainer section{display:-webkit-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:50px;overflow-y:auto;box-sizing:border-box}.bottom{margin:80px auto 0;padding:200px 0 50px;max-width:832px;width:832px;color:rgba(51,51,51,.7);font-size:13px;font-size:1.3rem;opacity:1;-webkit-transition:all .25s ease-out;transition:all .25s ease-out}.bottom,.welcome{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.welcome{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(51,51,51,.8);z-index:3}.dividers{margin:10px 0;width:100%;border-bottom:1px solid rgba(0,0,0,.12)}.h2,.h2 *{width:100%;text-align:left;font-size:14px!important;font-weight:500!important;color:rgba(51,51,51,.87)!important}#labs{padding-bottom:10px}.lab{padding:10px;width:100%;background-color:#fff;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.12)}.main_labs{background:transparent;box-shadow:none}#labs .slide{display:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:56px;line-height:56px;color:#616161;text-align:center;font-weight:700}#labs .slide .toggle{padding:2px 5px;height:20px;line-height:17px;border-radius:4px}#labs .slide .toggle i{-webkit-transition:all .25s ease-out;transition:all .25s ease-out}#labs .slide .toggle i.active{-webkit-transform:rotate(180deg);transform:rotate(180deg)}#labs .label{display:inherit;height:56px;line-height:56px;color:#616161;text-align:left;font-size:15px;font-size:1.5rem;font-weight:700}#labs .label.close{border-bottom:1px solid #eaeaea}#labs .label.collapse{cursor:pointer}#labs .label.collapse.close{border:none}#labs .label.collapse i{-webkit-transition:all .25s ease-out;transition:all .25s ease-out}#labs .label.collapse i.close{-webkit-transform:rotate(180deg);transform:rotate(180deg)}#labs .label.small{margin-top:15px;height:auto;line-height:normal}#labs .sublabel{display:-webkit-box;-ms-flex-negative:1;flex-shrink:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-align:left;color:rgba(51,51,51,.54)}#labs .sublabel.blockquote{margin:10px 0 10px 6px;padding-left:10px;-webkit-line-clamp:2;border-left:4px solid #4285f4}#labs .more{width:100%;font-size:14px;font-size:1.4rem;font-weight:400;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}#labs .more .desc{color:#757575;font-size:10px;font-size:1rem}#labs .more .arrow{display:block;position:absolute;right:22px;bottom:22px;width:24px;height:24px;background-image:url();background-position:50%;background-repeat:no-repeat}#labs .unsubscribe{margin-top:10px;font-weight:400;font-size:13px;cursor:pointer}#labs .unsubscribe span{padding:2px 5px;border-radius:4px}text-field-float{color:#4285f4!important}text-field-state{border-bottom-color:#4285f4!important}#labs a{font-weight:700;color:#4285f4;text-decoration:none}.connect a,.connect text-field-float{color:#1fab89!important}.connect text-field-state{border-bottom-color:#1fab89!important}.connect button-text{color:#fff!important}.about .home a{color:#009688!important}.slidegroup.sync text-field-float{color:#4285f4!important}sr-unreader-lock{position:absolute;left:0;top:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;background-color:#fff!important;opacity:.5;z-index:1000}sr-unreader-lock svg{cursor:pointer}cards{-webkit-box-orient:horizontal;-ms-flex-flow:row wrap;flex-flow:row wrap}card,cards{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}card{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;margin:6px;width:258px;color:rgba(51,51,51,.87);background-color:#fff;border-radius:2px;box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-webkit-transition:all .25s ease-out;transition:all .25s ease-out}card:hover{box-shadow:0 10px 20px 0 rgba(168,182,191,.6);-webkit-transform:translateY(-1px);transform:translateY(-1px)}card-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;height:196px;background-color:#40c4ff}card-header title{display:block;padding:0 10px;font-size:30px;font-weight:500;line-height:30px}card-header icon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100px;height:100px;font-size:80px}card-content,card-header icon{display:-webkit-box;display:-ms-flexbox;display:flex}card-content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;width:100%;height:134px;padding:16px}card-content title{display:block;font-size:20px;font-weight:500;height:32px;line-height:32px}card-content desc{display:block;font-size:14px;font-weight:500;height:22px;line-height:22px}card-content note{display:block;margin-top:16px;text-align:left;font-size:14px;font-weight:400;line-height:20px}card-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;width:100%;height:52px}card-footer i{font-size:16px}card-empty{width:100%;padding:50px}card-empty a{color:#00adb5!important;font-size:17px;font-weight:400!important}.avatar{margin:10px;padding:5px;width:100px;height:100px;line-height:80px;font-size:50px;font-weight:700;color:#fff;background-color:#6f7a9b;border-radius:50%;border:5px solid #fff;box-shadow:0 10px 20px 0 rgba(168,182,191,.6)}.lab.horz{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around;box-shadow:none}.lab .card,.lab.horz{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.lab .card{position:relative;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:6px;width:259px;height:300px;background-color:#fff;border-radius:2px;box-shadow:0 12px 18px -6px rgba(0,0,0,.3);-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.lab .card:hover{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.lab .card:hover .icon img{-webkit-transform:scale(.7);transform:scale(.7)}.lab .card .icon img{max-width:259px;width:100%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.lab .card .corners img{width:30px}.lab .card .corners{position:absolute;right:5px;top:5px;z-index:3}.lab .card .check{position:absolute;left:114.5px;bottom:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:30px;height:30px;border-radius:50%;background-color:#fff;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.lab .card:hover .check{opacity:0}.lab .card .check.enable svg path{fill:#4dbb7c}[data-head-level=h1]{cursor:pointer}[data-head-level=h1] .draw{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:5px;padding:5px;width:20px;height:20px;border-radius:50%;-webkit-transition:all .25s ease-out;transition:all .25s ease-out}[data-head-level=h1] .draw.close{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.label.senior{position:relative;width:100%;min-height:62px}.label .status{position:absolute;left:0;top:0;right:0;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.label .status.unlock{top:60px;opacity:0}.label .status.unlock icon{padding:0 10px;color:#fff;height:30px;line-height:30px;font-size:14px;font-size:1.4rem;font-style:normal;border-radius:4px;background-color:#4dbb7c}.label .status.unlock icon i{margin-right:5px}.label .status.unlock icon .fa-lock{-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.label .status.unlock icon:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.label .status.unlock icon:hover .fa-lock{color:#f2c52d}.label .status.unlock icon:hover .fa-lock:before{content:"\\F09C"}.lab .card:hover .status.normal{top:60px;-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.lab .card:hover .status.unlock{top:0;-webkit-animation-name:fadeInUp;animation-name:fadeInUp;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.lab .card.base .icon{height:238px;background-color:#e2e2e2}.lab .card.pro .icon{background-color:#4dbb7c}.lab .card.pro:hover .senior{margin-bottom:3px}.lab .card.pro:hover .label .status.unlock icon{margin-bottom:4px}.lab .card.bind .icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:259px;width:259px;background-image:-webkit-radial-gradient(circle farthest-corner at 10% 20%,#fdc168 0,#fb8080 90%);background-image:radial-gradient(circle farthest-corner at 10% 20%,#fdc168 0,#fb8080 90%)}.lab .card.bind .icon img{-webkit-transform:scale(.7);transform:scale(.7);box-shadow:0 12px 18px -6px rgba(0,0,0,.3)}.lab .card.bind:hover .label .status.unlock icon{margin-top:3px}.lab .card.restore .icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;height:259px;width:259px;background-color:#554d84}.lab .card.bind:hover .icon img,.lab .card.restore .icon img{-webkit-transform:scale(1);transform:scale(1)}.lab .card.restore:hover .icon img{-webkit-transform:scale(1.2);transform:scale(1.2)}.lab .card.logout .icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:259px;width:259px;background-color:#6ad4ec}.lab .card.logout:hover .icon img{-webkit-transform:scale(.5);transform:scale(.5)}.lab .card.logout .icon{height:238px}.lab .card.logout .icon img{-webkit-transform:scale(.4);transform:scale(.4)}.lab .card.rights .icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:259px;width:259px;background-color:#94c474;height:238px}.lab .card.rights:hover .icon img{-webkit-transform:scale(.5);transform:scale(.5)}.lab .card.rights .icon img{-webkit-transform:scale(.4);transform:scale(.4)}.lab .card.logout:hover .label .status.unlock icon,.lab .card.restore:hover .label .status.unlock icon,.lab .card.rights:hover .label .status.unlock icon{margin-top:3px}.lab .card.rights .locked{position:absolute;left:0;top:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;background-color:hsla(0,0%,100%,.7);font-size:20px;z-index:3}.lab .card.rights .locked:hover .status.lock icon{bottom:5px;opacity:1}.lab .card.rights .locked .fa-lock{box-shadow:0 12px 18px -6px rgba(0,0,0,.3)}.lab .card.rights .locked .status.lock icon{position:absolute;left:0;right:0;bottom:-50px;padding:0 10px;color:#000;background-color:#fff;font-size:14px;font-weight:400;font-style:normal;border-radius:4px;opacity:0;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.subscribe a,.userinfo a,.userinfo text-field-float{color:#ff5252!important}.subscribe button-text,.userinfo button-text{color:#fff!important}.userinfo sr-tooltip{overflow:visible;overflow:initial}.userinfo .clipboard{right:-10px}.userinfo .change,.userinfo .clipboard{position:absolute;bottom:8px;z-index:2;cursor:pointer}.userinfo .change{right:15px}.userinfo sr-tooltip .md-waves-effect{padding:10px;width:35px;height:35px;line-height:35px;border-radius:50%}.common .auto{background-color:#00e676}.common .auto,.common .manual{padding:0 5px;color:#fff;width:80px;font-weight:700;font-size:12px;border-radius:5px}.common .manual{background-color:#ff9d44}.common .time{padding:0 5px;color:#fff;background-color:#00e676;width:190px;font-weight:700;font-size:12px;border-radius:5px}.common .time.never{width:100px;background-color:#ff9d44}.common .label.float{position:fixed;bottom:-8px;left:10px}.common .lab.float{margin-top:20px}.automated .empty{margin-top:15px;font-weight:400}.automated .task{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:10px}.automated .task,.automated .task .avator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.automated .task .avator{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 7px 0 10px;min-width:23px;min-height:23px;border-radius:50%}.automated .task .normal{font-size:13px;font-weight:400}.automated .task .editor{position:relative;margin:0 10px;padding:0 4px;color:#fff;font-weight:500;border-radius:5px}.automated .task .editor .cover{position:absolute;left:3px;top:0;padding-left:2px;height:25px;line-height:25px;text-align:left;text-transform:capitalize;pointer-events:none;z-index:1}.automated .task .editor.target{background-color:#fb584a}.automated .task .editor.action{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;width:250px}.automated .task .editor.action .icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:5px;width:25px;height:25px;line-height:25px;border-radius:50%;background-position:50%;background-size:60%;background-repeat:no-repeat;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.automated .task .editor.action .icon[data-disable=true]{cursor:no-drop;background-color:#e5e5e5!important}.automated .task .editor.type{background-color:#3f72af}.automated .task .editor.target .notice{position:absolute!important;left:-15px;top:6px;min-width:12px;min-height:12px;line-height:12px;color:#fff;background-color:#ff5252;text-align:center;font-size:12px;font-weight:500;border-radius:50%}.automated .task .editor.target .cover{width:50px;background-color:#fb584a}.automated .task .editor.action .cover{width:120px;background-color:#845ec2}.automated .task .editor.type .cover{width:50px;background-color:#3f72af}.automated .task dropdown{height:25px!important;line-height:normal!important}.automated .task dropdown icon{top:0!important}.automated .task .control{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.automated .task .control .tooltip{width:40px}.automated .task .control .icon,.automated .task .control .tooltip{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.automated .task .control .icon{min-width:25px;min-height:25px;border-radius:50%;cursor:pointer;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.automated .task .control .icon.editor{color:#28527a}.automated .task .control .icon.editor:hover{color:#fff;background-color:#28527a}.automated .task .control .icon.enable{color:#bd9354}.automated .task .control .icon.enable:hover{color:#fff;background-color:#bd9354}.automated .task .control .icon.remove{color:#ff5252}.automated .task .control .icon.remove:hover{color:#fff;background-color:#ff5252}.automated .task .control .icon.remove.confrim{color:#fff;background-color:#ff5252;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.simpread-automated-root .cover{position:absolute;left:0;top:0;background-color:#fff;width:320px;height:36px;line-height:36px;text-align:left;text-transform:capitalize;font-weight:400;font-size:13px;pointer-events:none;z-index:1}.simpread-automated-root .notice a,.simpread-automated-root text-field-float{color:#1fab89!important}.simpread-automated-root text-field-state{border-bottom-color:#1fab89!important}.simpread-automated-root .preview{margin:0 30px 50px}.simpread-automated-root .icon,.simpread-automated-root .preview{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.simpread-automated-root .icon{width:50px;height:50px;border-radius:10px}.simpread-automated-root .edit{width:100%}.simpread-automated-root .sublabel{display:-webkit-box;-ms-flex-negative:1;flex-shrink:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-align:left;color:rgba(51,51,51,.54)}.simpread-automated-root .notice{margin-top:8px}.simpread-automated-root .action{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.simpread-automated-root .action,.simpread-automated-root .action .group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.simpread-automated-root .action .group{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.simpread-automated-root .action .group .order{min-width:20px;min-height:20px;line-height:20px;background-color:#1fab89;color:#fff;border-radius:50%;margin-right:5px;text-align:center;font-size:12px;font-weight:500}.simpread-automated-root .action .group .icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:25px;height:25px;min-width:25px;min-height:25px;border-radius:50%;cursor:pointer;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.simpread-automated-root .action .group .icon.remove{color:#ff5252}.simpread-automated-root .action .group .icon.remove:hover{color:#fff;background-color:#ff5252}.simpread-automated-root .action .group .dropdown{position:relative;width:100%}.simpread-automated-root .action .group .order[data-disable=true]{color:#fff!important;background-color:#ff5252!important}.alert[data-state="2"]{-webkit-box-orient:horizontal!important;-webkit-box-direction:normal!important;-ms-flex-direction:row!important;flex-direction:row!important}.alert .sr-alert-icon.upgrade{padding-top:20px;width:100%;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.alert .sr-alert-icon.upgrade img{width:100%;-webkit-transform:scale(.7);transform:scale(.7);-webkit-transform-origin:top;transform-origin:top}.alert .actionbar .notify{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.alert .actionbar text-field-state{border-top:none #ffb600!important;border-left:none #ffb600!important;border-right:none #ffb600!important;border-bottom:2px solid #ffb600!important}.alert .actionbar .unlock{position:absolute;right:-12px;bottom:7px;padding:5px;border-radius:50%;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms}.alert .actionbar .unlock:hover{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)}.alert .actionbar .unlock svg path,.alert .actionbar .unlock svg rect{-webkit-transition:all .4s cubic-bezier(.23,1,.32,1) 0ms;transition:all .4s cubic-bezier(.23,1,.32,1) 0ms}.alert .actionbar .unlock.error{bottom:16px}.alert .actionbar .unlock.error svg path,.alert .actionbar .unlock.error svg rect{fill:#f44336}.alert .actionbar .unlock:hover svg path{-webkit-transform:matrix(1,0,0,1,0,-11);transform:matrix(1,0,0,1,0,-11)}.alert .actionbar.error text-field-state{border-top:none #f44336!important;border-left:none #f44336!important;border-right:none #f44336!important;border-bottom:2px solid #f44336!important}.alert .sr-alert-icon.upgrade[data-state="0"]{height:350px;background-color:#ffb600}.alert .sr-alert-icon.upgrade[data-state="1"],.alert .sr-alert-icon.upgrade[data-state="201"],.alert .sr-alert-icon.upgrade[data-state="401"],.alert .sr-alert-icon.upgrade[data-state="403"],.alert .sr-alert-icon.upgrade[data-state="404"],.alert .sr-alert-icon.upgrade[data-state="422"],.alert .sr-alert-icon.upgrade[data-state="-1"]{height:270px}.alert .sr-alert-icon.upgrade[data-state="1"]{background-color:#ffb600}.alert .sr-alert-icon.upgrade[data-state="-1"]{background-color:#ed552e}.alert .sr-alert-icon.upgrade[data-state="401"],.alert .sr-alert-icon.upgrade[data-state="403"],.alert .sr-alert-icon.upgrade[data-state="404"],.alert .sr-alert-icon.upgrade[data-state="422"]{background-color:#eaecef}.alert .sr-alert-icon.upgrade[data-state="201"]{background-color:#4dbb7c}.alert .sr-alert-icon.upgrade[data-state="2"]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:320px;height:400px;background-color:#00b1fb}.alert .sr-alert-icon.upgrade[data-state="2"] img{width:70px;-webkit-transform:scale(1);transform:scale(1)}.alert .sr-alert-icon.upgrade[data-state="2"] .title{margin-top:10px;color:#fff;font-size:19px;font-weight:700}.alert .sr-alert-icon.upgrade[data-state="1"] img,.alert .sr-alert-icon.upgrade[data-state="201"] img,.alert .sr-alert-icon.upgrade[data-state="-1"] img{-webkit-transform:scale(.53);transform:scale(.53)}.alert .sr-alert-icon.upgrade[data-state="401"] img,.alert .sr-alert-icon.upgrade[data-state="403"] img,.alert .sr-alert-icon.upgrade[data-state="404"] img,.alert .sr-alert-icon.upgrade[data-state="422"] img{-webkit-transform:scale(.4);transform:scale(.4)}.alert .actionbar[data-state="1"],.alert .actionbar[data-state="201"],.alert .actionbar[data-state="401"],.alert .actionbar[data-state="403"],.alert .actionbar[data-state="404"],.alert .actionbar[data-state="422"],.alert .actionbar[data-state="-1"]{height:auto!important}.alert .actionbar[data-state="201"] .loading,.alert .actionbar[data-state="401"] .loading,.alert .actionbar[data-state="403"] .loading,.alert .actionbar[data-state="404"] .loading,.alert .actionbar[data-state="422"] .loading,.alert .actionbar[data-state="-1"] .loading{-webkit-animation-name:mini;animation-name:mini;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-delay:1s;animation-delay:1s}.alert .actionbar[data-state="401"] svg .circle,.alert .actionbar[data-state="403"] svg .circle,.alert .actionbar[data-state="404"] svg .circle,.alert .actionbar[data-state="422"] svg .circle,.alert .actionbar[data-state="-1"] svg .circle{fill:#ed552e;stroke:#ed552e}.alert .actionbar[data-state="201"] svg .circle{fill:#4dbb7c;stroke:#4dbb7c}.alert .actionbar[data-state="201"] .percentage,.alert .actionbar[data-state="401"] .percentage,.alert .actionbar[data-state="403"] .percentage,.alert .actionbar[data-state="404"] .percentage,.alert .actionbar[data-state="422"] .percentage,.alert .actionbar[data-state="-1"] .percentage{opacity:0}.alert .actionbar .failed,.alert .actionbar .success{position:absolute;z-index:1}.alert .actionbar .failed path{stroke:#fff;stroke-linecap:round;stroke-width:4;stroke-dasharray:13.1522;stroke-dashoffset:13.1522;-webkit-animation-name:openCross;animation-name:openCross}.alert .actionbar .failed path,.alert .actionbar .success path{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.alert .actionbar .success path{stroke:#fff;stroke-linecap:round;stroke-width:4;-webkit-transition:opacity .1s;transition:opacity .1s}.alert .actionbar .success path:nth-child(1){stroke-dasharray:27.7908;stroke-dashoffset:27.7908;-webkit-animation-name:openSuccess1;animation-name:openSuccess1}.alert .actionbar .success path:nth-child(2){stroke-dasharray:11.0752;stroke-dashoffset:11.0752;-webkit-animation-name:openSuccess2;animation-name:openSuccess2}.alert .actionbar .caveat .message,.alert .actionbar .notify .message{padding:0 10px;color:#fff;height:0;line-height:30px;font-size:11px;font-weight:700;opacity:0;border-radius:4px;-webkit-animation-name:show;animation-name:show;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-delay:1s;animation-delay:1s}.alert .actionbar .caveat{font-size:13px}.alert .caveat ol{margin-left:15px;padding-left:0}.alert .actionbar .caveat .message{width:100%;background-color:#00b1fb;text-align:center;cursor:pointer;-webkit-animation-delay:3s;animation-delay:3s}.alert .actionbar .caveat .message:hover,.alert .actionbar .notify .message:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.alert .actionbar[data-state="401"] .notify .message,.alert .actionbar[data-state="403"] .notify .message,.alert .actionbar[data-state="404"] .notify .message,.alert .actionbar[data-state="422"] .notify .message,.alert .actionbar[data-state="-1"] .notify .message{background-color:#ed552e}.alert .actionbar[data-state="201"] .notify .message{background-color:#4dbb7c}@-webkit-keyframes openCross{0%{stroke-dasharray:13.1522}to{stroke-dasharray:0}}@keyframes openCross{0%{stroke-dasharray:13.1522}to{stroke-dasharray:0}}@-webkit-keyframes openSuccess1{0%{stroke-dashoffset:27.7908}to{stroke-dashoffset:0}}@keyframes openSuccess1{0%{stroke-dashoffset:27.7908}to{stroke-dashoffset:0}}@-webkit-keyframes openSuccess2{0%{stroke-dashoffset:11.0752}to{stroke-dashoffset:0}}@keyframes openSuccess2{0%{stroke-dashoffset:11.0752}to{stroke-dashoffset:0}}@-webkit-keyframes mini{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(.7);transform:scale(.7)}}@keyframes mini{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(.7);transform:scale(.7)}}@-webkit-keyframes show{0%{height:0;opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{height:30px;opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes show{0%{height:0;opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{height:30px;opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.bubbles{position:fixed!important;bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center;padding:10px;width:55px;height:56px;border-radius:50%;box-shadow:0 2px 6px 0 rgba(0,0,0,.4);cursor:pointer;-webkit-transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;overflow:visible;overflow:initial}.bubbles.notice{right:164px;background-color:#16666f}.bubbles.notice:hover{background-color:rgba(22,102,111,.8)}.bubbles i{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.bubbles em{position:absolute;top:6px;right:11px;width:18px;height:18px;line-height:18px;color:#fff;background-color:#e54545;font-weight:700;text-align:center;font-style:normal;border-radius:50%}.bubbles em.init{line-height:9px}.bubbles.effect{-webkit-animation-name:popup;animation-name:popup;-webkit-animation-duration:1s;animation-duration:1s}.bubbles.help{right:94px;background-color:#607d8b}.help:hover{background-color:rgba(96,125,139,.8)}@-webkit-keyframes popup{0%{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes popup{0%{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes popdown{0%{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes popdown{0%{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes popclose{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}}@keyframes popclose{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}}.guide-bg{position:fixed;right:10px;bottom:90px;-webkit-animation-name:popup;animation-name:popup;-webkit-animation-duration:1s;animation-duration:1s;z-index:2147483647}.guide{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-line-pack:center;align-content:center;width:350px;height:400px;background-color:#f5f6f6;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 2px rgba(0,0,0,.26);overflow-x:hidden;overflow-y:auto}.guide .subtitle,.guide .title{height:48px;line-height:48px;color:#fff;background-color:#26d07c;font-size:17px;text-align:center;border-top-left-radius:2px;border-top-right-radius:2px}.guide .title{position:absolute;left:0;right:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-weight:700;z-index:2}.guide .title span{-webkit-animation:.1s reverse fadein,235ms cubic-bezier(.4,0,.2,1) popdown;animation:.1s reverse fadein,235ms cubic-bezier(.4,0,.2,1) popdown}.guide .subtitle{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin-top:48px;min-height:55px;line-height:normal;font-size:15px}.guide .loading,.guide .subtitle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.guide .loading{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px;font-weight:500;font-size:13px;-webkit-transition:opacity 1s cubic-bezier(.23,1,.32,1) 0ms;transition:opacity 1s cubic-bezier(.23,1,.32,1) 0ms}.guide .loading span{padding:5px}.guide .group{margin-top:-30px;padding:10px}guid-card{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:10px;padding:20px;width:100%;background-color:#fff;border-radius:4px;-webkit-transition:all .55s cubic-bezier(.23,1,.32,1) 0s;transition:all .55s cubic-bezier(.23,1,.32,1) 0s;cursor:pointer}guid-card,guid-card:hover{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),inset 0 0 0 1px rgba(193,203,212,.7),inset 0 -1px 0 0 #c1cbd4}guid-card:hover{-webkit-transform:translateY(-2px);transform:translateY(-2px)}guid-card-tips span{margin-left:5px;font-size:14px;color:#0b242f}.guide hr{margin:0;border:0;text-align:center;overflow:visible}.guide hr:before{content:"...";position:relative;top:-10px;display:inline-block;margin-left:.6em;color:rgba(0,0,0,.68);font-family:medium-content-slab-serif-font,Georgia,Cambria,Times New Roman,Times,serif;font-weight:400;font-style:italic;font-size:30px;letter-spacing:.6em}.bubbles.feedback{right:24px;background-color:#fb7756}.feedback:hover{background-color:rgba(251,119,86,.8)}.simpread-feedback,.simpread-urlscheme{position:fixed;right:20px;bottom:20px;z-index:2147483646}simpread-feedback,simpread-urlscheme{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:20px 20px 0;width:500px;color:rgba(51,51,51,.87);background-color:#fff;border-radius:3px;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 2px rgba(0,0,0,.26);overflow:hidden;-webkit-transform-origin:bottom;transform-origin:bottom;-webkit-transition:all .6s ease;transition:all .6s ease}simpread-feedback *,simpread-urlscheme *{font-size:12px!important;box-sizing:border-box}simpread-feedback.active,simpread-urlscheme.active{-webkit-animation-name:srFadeInUp;animation-name:srFadeInUp;-webkit-animation-duration:.45s;animation-duration:.45s;-webkit-animation-fill-mode:both;animation-fill-mode:both}simpread-feedback.hide,simpread-urlscheme.hide{-webkit-animation-name:srFadeInDown;animation-name:srFadeInDown;-webkit-animation-duration:.45s;animation-duration:.45s;-webkit-animation-fill-mode:both;animation-fill-mode:both}simpread-feedback sr-fb-label,simpread-urlscheme sr-urls-label{width:100%}simpread-feedback sr-fb-head,simpread-urlscheme sr-urls-head{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-bottom:5px;width:100%}simpread-feedback sr-fb-content,simpread-urlscheme sr-urls-content{margin-bottom:5px;width:100%}simpread-feedback sr-urls-footer,simpread-urlscheme sr-urls-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;width:100%}simpread-feedback sr-fb-a,simpread-urlscheme sr-urls-a{color:#2163f7;cursor:pointer}simpread-feedback text-field-state,simpread-urlscheme text-field-state{border-top:none rgba(34,101,247,.8)!important;border-left:none rgba(34,101,247,.8)!important;border-right:none rgba(34,101,247,.8)!important;border-bottom:2px solid rgba(34,101,247,.8)!important}simpread-feedback switch,simpread-urlscheme switch{margin-top:0!important}@-webkit-keyframes srFadeInUp{0%{opacity:0;-webkit-transform:translateY(100px);transform:translateY(100px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes srFadeInUp{0%{opacity:0;-webkit-transform:translateY(100px);transform:translateY(100px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes srFadeInDown{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100px);transform:translateY(100px)}}@keyframes srFadeInDown{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100px);transform:translateY(100px)}}simpread-feedback sr-fb-head{font-weight:700}simpread-feedback sr-fb-content{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}simpread-feedback sr-fb-content,simpread-feedback sr-fb-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}simpread-feedback sr-fb-footer{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;width:100%}simpread-feedback sr-close{position:absolute;right:20px;cursor:pointer;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) .1s;transition:all 1s cubic-bezier(.23,1,.32,1) .1s;z-index:200}simpread-feedback sr-close:hover{-webkit-transform:rotate(-15deg) scale(1.3);transform:rotate(-15deg) scale(1.3)}simpread-feedback sr-stars{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:10px}simpread-feedback sr-stars i{margin-right:10px;cursor:pointer}simpread-feedback sr-stars i svg{-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) .1s;transition:all 1s cubic-bezier(.23,1,.32,1) .1s}simpread-feedback sr-stars i svg:hover{-webkit-transform:rotate(-15deg) scale(1.3);transform:rotate(-15deg) scale(1.3)}simpread-feedback sr-stars i.active svg{-webkit-transform:rotate(0) scale(1);transform:rotate(0) scale(1)}simpread-feedback sr-emojis{display:block;height:100px;overflow:hidden}simpread-feedback sr-emoji{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:.3s;transition:.3s}simpread-feedback sr-emoji>svg{margin:15px 0;width:70px;height:70px;-ms-flex-negative:0;flex-shrink:0}simpread-feedback sr-stars-footer{margin:10px 0 20px}.emer,simpread-feedback sr-stars-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.emer{position:fixed;top:0;left:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:50px;color:#fff;background-color:#ff5252;font-size:14px;font-weight:400;-webkit-transform:translateY(-50px);transform:translateY(-50px);-webkit-transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;z-index:2000}.emer.active{-webkit-transform:translateY(0);transform:translateY(0)}.emer .icon{margin-right:10px;font-size:15px}.emer a{margin-left:5px;padding-bottom:5px;color:inherit;font-weight:400;border-bottom:2px solid transparent;-webkit-transition:border-color .5s;transition:border-color .5s}.emer a:hover{color:hsla(0,0%,100%,.9);border-bottom:2px solid #fff}.emer .action{margin-left:10px;padding:0 4px;border:1px solid hsla(0,0%,100%,.2);-webkit-transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;cursor:pointer}.emer .action:hover{font-weight:700;border:1px solid #fff}.emer .action.close{margin-left:20px}#labs .more .desc,.sublabel,subtitle{font-size:13px!important}.menus-bg{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:none}.menus{position:absolute;top:40px;right:14px;display:block;margin:0;width:190px;max-height:300px;color:rgba(51,51,51,.87);background-color:#fff;text-align:center;font-size:14px;font-weight:400;box-sizing:border-box;box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.2);border-radius:2px;opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:left top 0;transform-origin:left top 0;-webkit-transition:opacity 1s cubic-bezier(.23,1,.32,1) 0ms,-webkit-transform .45s cubic-bezier(.23,1,.32,1) 0ms;transition:opacity 1s cubic-bezier(.23,1,.32,1) 0ms,-webkit-transform .45s cubic-bezier(.23,1,.32,1) 0ms;transition:transform .45s cubic-bezier(.23,1,.32,1) 0ms,opacity 1s cubic-bezier(.23,1,.32,1) 0ms;transition:transform .45s cubic-bezier(.23,1,.32,1) 0ms,opacity 1s cubic-bezier(.23,1,.32,1) 0ms,-webkit-transform .45s cubic-bezier(.23,1,.32,1) 0ms;z-index:2100}.menus-bg.active,.menus.active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);pointer-events:auto}.menus sr-tooltip{width:100%;overflow:visible;overflow:initial}.menu{padding:10px 10px 0;width:100%;height:35px;line-height:normal;text-align:left;-webkit-transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;transition:all .45s cubic-bezier(.23,1,.32,1) 0ms}.menu[action=login],.menu[action=logout]{padding-bottom:10px;line-height:16px}.menu:hover{background-color:#eee}.menu i{margin-right:5px;width:17px}.passportbg{position:fixed;left:0;top:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;background-color:rgba(51,51,51,.8);z-index:2147483647}.passportbg,passport{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}passport{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0 20px;width:450px;height:550px;background-color:#fff;border-radius:4px;box-shadow:0 14px 45px rgba(0,0,0,.247059);-webkit-animation-name:fadeInUp;animation-name:fadeInUp;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;transition:all .45s cubic-bezier(.23,1,.32,1) 0ms}passport .close{position:absolute;top:0;right:0;z-index:2}passport passport-section{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%}passport-section passport-div,passport passport-section{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%}passport .topbar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}passport .title{display:block;margin:10px 0;font-size:16px;font-weight:400}passport .jianguo{position:relative;display:none;padding:0 6px}passport .jianguo text-field-state{border-color:#b96f3d!important}passport .jianguo passport-span.login{position:absolute;bottom:4px;right:0}passport .bottombar{position:absolute;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}passport .bottombar a[type=flat]{margin:0!important}passport .bottombar a:first-child{-webkit-transform:scale(.9) translateX(-10px);transform:scale(.9) translateX(-10px)}passport .bottombar a:last-child{-webkit-transform:scale(.9) translateX(10px);transform:scale(.9) translateX(10px)}passport .bottombar button-text{padding:0!important}passport-footer-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:20px 6px;width:100%}passport-footer-line{width:100%;border-top:1px solid #e0e0e0}passport-footer-text{min-width:70px;text-align:center}toc-bg{position:fixed;top:265px;right:120px}toc-bg.hidden{display:none}toc-header{font-size:14px;font-weight:400}page-toc{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:15px;color:#616161}page-outline{height:37px;line-height:37px;font-size:14px;font-weight:400;border-left:2px solid hsla(0,0%,74%,.4)}page-outline.active{border-left:2px solid #212121}outline-item{display:block;padding:0 15px;width:100%}outline.active outline-item{color:#212121}@media only screen and (max-width:1300px){toc-bg{right:50px}}@media only screen and (max-width:1160px){toc-bg{right:10px}}@media only screen and (max-width:1070px){toc-bg{display:none}}dropdown list-field-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}dropdown span{font-weight:400;text-transform:capitalize}dropdown *{font-size:13px!important;font-weight:500}text-field textarea{resize:vertical!important}switch content *{font-weight:500!important}.sublabel,switch content subtitle{font-weight:400!important}.dividers{border-bottom:1px solid #eaeaea}#labs text-field-border{border-bottom:1px solid #eaeaea!important}',""]);
},104:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,"@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fadeOutDown{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}sr-promo-bg{position:fixed;right:15px;bottom:15px;z-index:2147483646}sr-promo,sr-promo-notice{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:10px;color:rgba(51,51,51,.87);background-color:#fff;border-radius:4px;box-shadow:0 12px 18px -6px rgba(0,0,0,.3);overflow:hidden;-webkit-transform-origin:bottom;transform-origin:bottom;-webkit-transition:all .6s ease;transition:all .6s ease;-webkit-animation-name:fadeInUp;animation-name:fadeInUp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}sr-promo img{width:220px;cursor:pointer}sr-promo-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:10px 0 0;width:100%}sr-promo-a{padding:5px 10px;color:#fff;font-size:12px;font-weight:700;border-radius:2px;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);cursor:pointer}sr-promo-a.later{background-color:#2196f3}sr-promo-a.cancel{background-color:#757575}sr-promo-tip{font-size:12px;padding:5px 10px;border-radius:2px}sr-promo-notice{position:absolute;top:10px;left:10px;right:10px;height:293px;padding-bottom:0;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;font-size:12px;border-radius:0;box-shadow:none;overflow-y:hidden}sr-promo-notice:hover{overflow-y:overlay}sr-promo-notice-title{font-weight:700;text-align:center;margin-bottom:5px;width:100%;font-size:14px}sr-promo-notice-content{margin-top:5px}",""])},105:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,".simpread-upgrade-root *{box-sizing:border-box}.simpread-upgrade-root{-webkit-transition:all .25s ease-out;transition:all .25s ease-out}.simpread-upgrade-root.open{background-color:rgba(51,51,51,.8)}.simpread-upgrade-root dialog-gp{position:relative}.simpread-upgrade-root dialog-gp .close{position:fixed;top:0;right:0;z-index:2}.simpread-upgrade-root dialog-gp .close:hover{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:all .25s ease-out;transition:all .25s ease-out}.simpread-upgrade-root dialog-content{padding-bottom:80px!important;overflow-y:hidden}.simpread-upgrade-root dialog-content:hover{overflow-y:overlay}.simpread-upgrade-root dialog-content::-webkit-scrollbar-track{background-color:transparent}.simpread-upgrade-root dialog-content::-webkit-scrollbar{width:12px}.simpread-upgrade-root dialog-content::-webkit-scrollbar-thumb{background-clip:padding-box;padding-top:80px;background-color:#ddd;border:3px solid transparent;border-radius:8px}.simpread-upgrade-root .floating{position:absolute;left:0;right:0;bottom:0;height:80px;overflow-y:hidden}.simpread-upgrade-root .floating,.simpread-upgrade-root .floating .billing{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.simpread-upgrade-root .floating .billing{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:1px 40px;color:#fff;background-color:#4dbb7c;font-size:15px;font-weight:400;opacity:0;border-radius:30px;-webkit-transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;box-shadow:0 12px 18px -6px rgba(0,0,0,.3)}.simpread-upgrade-root .floating .billing.open{-webkit-animation-name:fadeInUp;animation-name:fadeInUp;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.simpread-upgrade-root .floating .billing .sales{font-size:12px}.simpread-upgrade-root .floating .billing .rate{margin:0 5px}.simpread-upgrade-root .floating .billing .price{margin-left:2px;margin-right:5px}.upgrade{position:relative;color:rgba(51,51,51,.87);font-family:Hiragino Sans GB,Microsoft Yahei;text-shadow:none}.upgrade .head{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.upgrade .head img{margin-bottom:5px;width:60px;border-radius:9px;box-shadow:0 12px 18px -6px rgba(0,0,0,.3)}.upgrade .head .title{margin:10px 0;font-weight:700;font-size:15px}.upgrade .head .desc{width:70%;text-align:center;font-size:13px}.upgrade .features{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around;-webkit-transition:height .2s cubic-bezier(.23,1,.32,1) 0ms;transition:height .2s cubic-bezier(.23,1,.32,1) 0ms}.upgrade .features.init{height:100px}.upgrade .features.init .base,.upgrade .features.init .pro{opacity:0}.upgrade .loading{position:absolute;left:0;top:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;background-color:#fff;z-index:1}.upgrade .loading span{width:50px;height:50px;opacity:.87}.features.error{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:inherit;font-size:14px}.features.error img{margin:10px 0;width:300px}.upgrade .base,.upgrade .pro{margin:20px 20px 13px;width:100%;text-align:center;opacity:1;-webkit-transition:opacity .2s cubic-bezier(.23,1,.32,1) 0ms;transition:opacity .2s cubic-bezier(.23,1,.32,1) 0ms}.upgrade .pricecard{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border-radius:4px;border:1px solid #eef1f4;position:relative}.upgrade .pro .pricecard{border:2px solid #4dbb7c;box-shadow:0 12px 18px -6px rgba(0,0,0,.3)}.upgrade .pricecard .mode{margin:20px 10px 10px;font-size:18px;font-weight:700}.upgrade .pricecard .sales{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:92px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.upgrade .pricecard .discountrate{position:absolute;top:-12px;left:0;right:0}.upgrade .pricecard .discountrate .rate{padding:3px 10px;color:#fff;background-color:#4dbb7c;font-weight:700;font-size:13px;border-radius:10px}.upgrade .pricecard .desc{font-size:30px}.upgrade .pricecard .desc del{font-size:15px;font-weight:700;text-decoration:line-through}.upgrade .pricecard .price{position:relative;color:#4dbb7c;font-size:30px;font-weight:700}.upgrade .pricecard .message{position:relative;font-size:11px;font-weight:400;background-image:-webkit-linear-gradient(top,hsla(0,0%,100%,0) 50%,#ffeb3b 0);background-image:linear-gradient(180deg,hsla(0,0%,100%,0) 50%,#ffeb3b 0)}.upgrade .pricecard .countdown{margin-top:5px}.upgrade .pricecard .billing{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:30px 20%;padding:5px;color:#333;background-color:#e2e2e2;font-size:15px;font-style:normal;font-weight:700;border-radius:4px;cursor:pointer}.upgrade .pricecard .billing,.upgrade .pricecard .billing i{-webkit-transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms}.upgrade .pricecard .billing i{height:27px;line-height:22px;margin-left:5px}.upgrade .pricecard .billing:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.upgrade .pricecard .billing:hover i{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.upgrade .pricecard .billing:hover .dropdown-price{opacity:1;-webkit-transform:scale(1);transform:scale(1)}.upgrade .pricecard .billing .dropdown-price{position:absolute;left:-41px;top:38px;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:270px;color:rgba(51,51,51,.87);font-size:12px;text-shadow:none;box-sizing:border-box;border-radius:4px;box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.2);opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-transform-origin:left top 0;transform-origin:left top 0;-webkit-transition:opacity 1s cubic-bezier(.23,1,.32,1) 0ms,-webkit-transform .45s cubic-bezier(.23,1,.32,1) 0ms;transition:opacity 1s cubic-bezier(.23,1,.32,1) 0ms,-webkit-transform .45s cubic-bezier(.23,1,.32,1) 0ms;transition:transform .45s cubic-bezier(.23,1,.32,1) 0ms,opacity 1s cubic-bezier(.23,1,.32,1) 0ms;transition:transform .45s cubic-bezier(.23,1,.32,1) 0ms,opacity 1s cubic-bezier(.23,1,.32,1) 0ms,-webkit-transform .45s cubic-bezier(.23,1,.32,1) 0ms;z-index:1}.upgrade .pricecard .billing .dropdown-price,.upgrade .pricecard .billing .dropdown-price .store{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#fff}.upgrade .pricecard .billing .dropdown-price .store{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;padding:8px 24px 8px 16px;width:100%;-webkit-transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;transition:all 1s cubic-bezier(.23,1,.32,1) 0ms;cursor:pointer}.upgrade .pricecard .billing .dropdown-price .store:hover{background-color:#eee}.upgrade .pricecard .billing .dropdown-price .store:hover i{-webkit-transform:rotate(270deg) translateY(7px);transform:rotate(270deg) translateY(7px)}.upgrade .pricecard .billing .dropdown-price .store .names{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;width:135px}.upgrade .pricecard .billing .dropdown-price .store .des{width:100%;color:rgba(51,51,51,.56);text-align:left;font-size:10px;-webkit-transform:scale(.8) translateX(-17px);transform:scale(.8) translateX(-17px)}.upgrade .pricecard .billing .dropdown-price .store .num{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:46px}.upgrade .pricecard .billing .dropdown-price .store .tips{-webkit-transform:scale(.8);transform:scale(.8);color:#4dbb7c}.upgrade .pricecard .billing .dropdown-price .store i{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.upgrade .base[data-enable=false] .pricecard,.upgrade .pro[data-enable=true] .pricecard{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:210px}.upgrade .base[data-enable=false] .pricecard .mode,.upgrade .pro[data-enable=true] .pricecard .mode{font-size:25px}.upgrade .base[data-enable=false] .pricecard .billing,.upgrade .base[data-enable=false] .pricecard .sales,.upgrade .pro[data-enable=true] .pricecard .billing .dropdown-price,.upgrade .pro[data-enable=true] .pricecard .billing i,.upgrade .pro[data-enable=true] .pricecard .discountrate,.upgrade .pro[data-enable=true] .pricecard .sales{display:none}.upgrade .pro[data-enable=true] .pricecard .billing{position:absolute;top:-28px;left:0;right:0;display:inherit;margin:10px 20%;border-radius:30px}.upgrade .pro .billing{color:#fff;background-color:#4dbb7c}.upgrade .features.diff{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;margin-top:20px}.upgrade .features.diff,.upgrade .features .feature{-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.upgrade .features .feature{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:unset;-ms-flex-pack:unset;justify-content:unset;margin:14px 20px 0;font-size:15px}.upgrade .features .feature.empty{height:27px}.upgrade .features .icon{margin-right:10px;width:15px}.upgrade .features .label{width:120px;font-size:15px;text-align:left}.upgrade .features a{color:inherit;cursor:auto}.upgrade .features a.active{padding-bottom:5px;border-bottom:1px dotted;-webkit-transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;cursor:pointer}.upgrade .features a.active:hover{color:#4285f4}.upgrade .features .label .remark{margin-left:5px;padding:2px 5px;background-color:#ffeb3b;font-size:12px;font-weight:400;border-radius:4px}.upgrade .features .label .remark.roadmap{background-color:#e2e2e2}.upgrade .ticket{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:13px}.upgrade .ticket .message{width:70%;text-align:center}.upgrade .ticket .line{margin:7px 0 0;width:100%;height:1px;background-image:-webkit-linear-gradient(.1deg,rgba(255,18,18,0) -2.8%,#e2e2e2 50.8%,rgba(0,159,8,0) 107.9%);background-image:linear-gradient(89.9deg,rgba(255,18,18,0) -2.8%,#e2e2e2 50.8%,rgba(0,159,8,0) 107.9%)}.upgrade .ticket .notice{margin:20px 20%;padding:5px 20px;color:#333;background-color:#e2e2e2;font-size:15px;font-weight:400;border-radius:4px}.upgrade .ticket .content{margin:0 0 13px;width:80%}.upgrade .ticket .content li{margin-bottom:6px}.upgrade .ticket .content li:last-child{margin-bottom:0}.upgrade .ticket .last{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:20px 0;width:100%}.upgrade .carousels{margin:20px 20px 13px}.upgrade .carousel.carousel-slider{height:420px;border-radius:4px;box-shadow:0 12px 18px -6px rgba(0,0,0,.3)}.upgrade .carousels setion{position:relative}.upgrade .carousels setion img{margin-top:-82px;width:100%}.upgrade .carousels .descr{position:absolute;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:80px;width:100%;padding-bottom:10px;background-color:#fff;font-size:17px}.simpread-upgrade-root.mini dialog-gp{border-radius:15px!important}.simpread-upgrade-root.mini dialog-content{padding:0!important;width:650px!important}.simpread-upgrade-root.mini dialog-gp .close{position:absolute}.simpread-upgrade-root.mini .upgrade .carousels{margin:0}.simpread-upgrade-root.mini .upgrade .carousels .descr{padding-bottom:70px;height:130px}.simpread-upgrade-root.mini .upgrade .carousel.carousel-slider{height:450px}.simpread-upgrade-root.mini .floating .billing{margin-bottom:30px;min-height:40px}.simpread-upgrade-root.mini footer{position:absolute;top:199px;left:-60px;right:-60px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}",""])},106:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,"dialog-gp .carousel,welcome .carousel{position:relative;width:100%;height:400px;-webkit-perspective:500px;perspective:500px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform-origin:0 50%;transform-origin:0 50%;overflow:hidden}dialog-gp .carousel.carousel-slider,welcome .carousel.carousel-slider{top:0;left:0;height:100%}dialog-gp .carousel.carousel-slider .carousel-item,welcome .carousel.carousel-slider .carousel-item{position:absolute;top:0;left:0;width:100%;height:100%;min-height:400px}dialog-gp .carousel .carousel-item,welcome .carousel .carousel-item{display:none;position:absolute;top:0;left:0;width:200px;height:200px}dialog-gp .carousel .carousel-item>img,welcome .carousel .carousel-item>img{width:100%}dialog-gp .carousel .indicators,welcome .carousel .indicators{position:absolute;margin:0;padding:0;left:0;right:0;bottom:0;text-align:center}dialog-gp .carousel .indicators .indicator-item,welcome .carousel .indicators .indicator-item{display:inline-block;position:relative;margin:14px 4px;height:10px;width:10px;background-color:#e0e0e0;-webkit-transition:background-color .3s;transition:background-color .3s;border-radius:50%;cursor:pointer}dialog-gp .carousel .indicators .indicator-item.active,welcome .carousel .indicators .indicator-item.active{background-color:#4caf50}dialog-gp .carousel .carousel-item:not(.active) .materialboxed,dialog-gp .carousel.scrolling .carousel-item .materialboxed,welcome .carousel .carousel-item:not(.active) .materialboxed,welcome .carousel.scrolling .carousel-item .materialboxed{pointer-events:none}",""])},107:function(e,t){e.exports=function(e,t,n){for(var a=(2<<Math.log(t.length-1)/Math.LN2)-1,r=Math.ceil(1.6*a*n/t.length),o="";;)for(var i=e(r),s=0;s<r;s++){var l=i[s]&a;if(t[l]&&(o+=t[l],o.length===n))return o}}},108:function(e,t,n){var a=n(109),r=n(107);e.exports=function(e,t){return r(a,e,t)}},109:function(e,t){var n=self.crypto||self.msCrypto;e.exports=function(e){return n.getRandomValues(new Uint8Array(e))}},112:function(e,t,n){var a=n(102);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)},113:function(e,t,n){var a=n(103);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)},114:function(e,t,n){var a=n(104);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)},115:function(e,t,n){var a=n(105);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)},138:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,"sr-opt-focus,sr-opt-read{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}sr-opt-focus,sr-opt-gp,sr-opt-read{display:-webkit-flex;-webkit-box-direction:normal;width:100%}sr-opt-gp{position:relative;-webkit-box-orient:horizontal;-ms-flex-flow:row nowrap;flex-flow:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin-bottom:25px;font-size:15px}sr-opt-gp input,sr-opt-gp textarea{font-family:DIN-Regular,Bookerly,Georgia,-apple-system,PingFang SC,Microsoft Yahei,Lantinghei SC,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif!important}sr-opt-gp sr-opt-label{display:block;position:absolute;margin:-8px 0 0;font-size:14px;font-weight:700;color:rgba(0,137,123,.8);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-transform:scale(.75) translateY(-8px);transform:scale(.75) translateY(-8px);-webkit-transform-origin:left top 0;transform-origin:left top 0}sr-opt-themes{display:-webkit-flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;margin:8px 0 17px;padding:0}sr-opt-theme{width:40px;height:20px;cursor:pointer;list-style:none;border-radius:3px;border:1px solid #212121;box-sizing:border-box;opacity:1;-webkit-transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms}sr-opt-theme:hover{-webkit-transform:translateY(-1px);transform:translateY(-1px);box-shadow:0 5px 10px rgba(0,0,0,.2)}sr-opt-theme:not(:first-child){margin-left:5px}sr-opt-theme[sr-type=active]{box-shadow:0 5px 10px rgba(0,0,0,.2);border:none}sr-opt-focus text-field-float,sr-opt-read text-field-float{color:rgba(0,137,123,.8)!important}sr-opt-focus text-field-state,sr-opt-read text-field-state{border-bottom-color:rgba(0,137,123,.8)!important}sr-opt-gp svg{-webkit-animation:none 0s ease 0s 1 normal none running;animation:none 0s ease 0s 1 normal none running;-webkit-backface-visibility:visible;backface-visibility:visible;background:transparent none repeat 0 0/auto auto padding-box border-box scroll;border:medium none currentColor;border-collapse:separate;-o-border-image:none;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;clip:auto;color:#000;-webkit-columns:auto;-moz-columns:auto;columns:auto;-webkit-column-count:auto;-moz-column-count:auto;column-count:auto;-webkit-column-fill:balance;-moz-column-fill:balance;column-fill:balance;-webkit-column-gap:normal;-moz-column-gap:normal;column-gap:normal;-webkit-column-rule:medium none currentColor;-moz-column-rule:medium none currentColor;column-rule:medium none currentColor;-webkit-column-span:1;-moz-column-span:1;column-span:1;-webkit-column-width:auto;-moz-column-width:auto;column-width:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:inline;empty-cells:show;float:none;font-family:serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;line-height:normal;height:auto;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;-webkit-perspective:none;perspective:none;-webkit-perspective-origin:50% 50%;perspective-origin:50% 50%;position:static;right:auto;-moz-tab-size:8;-o-tab-size:8;tab-size:8;table-layout:auto;text-align:left;text-align-last:auto;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;-webkit-transform:none;transform:none;-webkit-transform-origin:50% 50% 0;transform-origin:50% 50% 0;-webkit-transform-style:flat;transform-style:flat;-webkit-transition:none 0s ease 0s;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto;all:initial}sr-opt-gp actions{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%}sr-opt-gp action-item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:5px 0}sr-opt-gp action-item:first-child{padding-top:10px}sr-opt-gp action-label{font-size:12px;font-weight:400;margin-left:10px}sr-opt-gp action-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}sr-opt-gp action-icon,sr-opt-gp action-rect{-webkit-box-align:center;-ms-flex-align:center;align-items:center}sr-opt-gp action-rect{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}sr-opt-gp export-icon{display:block;padding:3px;width:21px;height:21px;background-size:64%;background-position:50%;background-repeat:no-repeat;border:none;border-radius:4px}sr-opt-gp export-icon.symbol{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}sr-opt-gp export-icon i{color:#fff;font-size:12px}sr-opt-gp action-item[action=joplin] export-icon{background-size:50%}sr-opt-gp action-item[action=focusnote] export-icon{background-size:42%}style-bar{margin-bottom:10px}style-bar sr-opt-read-adv sr-opt-gp{margin:10px 0 0}style-bar sr-opt-read-adv sr-opt-gp.large{position:relative;margin-top:25px}sr-opt-read-adv sr-opt-gp:last-child{margin-bottom:0}style-bar sr-opt-gp:last-child{margin-bottom:10px}style-bar sr-opt-read-adv sr-opt-label.row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;pointer-events:auto;cursor:pointer}style-bar sr-opt-read-adv sr-opt-label.row,style-bar sr-opt-read-adv sr-opt-label sr-opt-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}style-bar sr-opt-read-adv sr-opt-label sr-opt-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:all .25s ease-out;transition:all .25s ease-out}style-bar sr-opt-read-adv sr-opt-label sr-opt-icon.open{-webkit-transform:rotate(270deg);transform:rotate(270deg)}style-bar sr-opt-read-adv.dividers{border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea}style-bar switch{margin:0!important}style-bar switch span{font-size:13px!important;font-weight:700!important}style-bar switch subtitle{font-size:12px!important}style-bar text-field textarea{resize:vertical!important}style-bar sr-opt-button{position:absolute!important;right:12px;bottom:14px;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px;border-radius:50%;-webkit-transition:all .25s ease-out;transition:all .25s ease-out}style-bar sr-opt-button,style-bar sr-opt-button svg{cursor:pointer!important}style-bar text-field.hidden+sr-opt-button{opacity:0}",""])},147:function(e,t,n){var a=n(138);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)},197:function(e,t,n){(function(e,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];$("simpread-feedback").length>0||($("html").append('<div class="simpread-feedback"></div>'),a.render(e.createElement(w,{version:t,user:n,url:location.href,rate:r}),$(".simpread-feedback")[0]))}Object.defineProperty(t,"__esModule",{value:!0}),t.Render=t.Feedback=void 0;var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),p=n(32),u=o(p),m=n(14),f=o(m),h=n(10),b=o(h),g=n(3),v=n(6),k=r(v),w=t.Feedback=function(t){function n(){var e,t,a,r;i(this,n);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return t=a=s(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={mode:"github",rate:a.props.rate,stars:0},r=t,s(a,r)}return l(n,t),d(n,[{key:"onStarClick",value:function(e){$(this.refs.stars).find("i").removeClass("active");for(var t=0;t<5;t++){var n=$($(this.refs.stars).find("i")[t]);t<e?n.addClass("active").html(this.props.stared):n.html(this.props.star)}$(this.refs.emoji).css({transform:"translateY(-"+e+"00px)"}),this.setState({stars:e})}},{key:"onStarHover",value:function(e){$(this.refs.emoji).css({transform:"translateY(-"+e+"00px)"})}},{key:"onRateClick",value:function(){var e=this;this.state.stars<4?this.setState({rate:!1}):(g.browser.runtime.sendMessage(k.Add(k.MESSAGE_ACTION.new_tab,{url:"https://chrome.google.com/webstore/detail/simpread-reader-view/ijllcpnolfcooahcekpamkbidhejabll/reviews"})),setTimeout(function(){return e.onClose()},200))}},{key:"onURLChange",value:function(e){this.props.url=e.target.value.trim()}},{key:"onAnonymousChange",value:function(e){this.props.anonymous=e}},{key:"onChangeMode",value:function(e){this.setState({mode:e})}},{key:"onClose",value:function(){$(this.refs.target).addClass("hide")[0].addEventListener("animationend",function(){a.unmountComponentAtNode($(".simpread-feedback")[0]),$(".simpread-feedback").remove()},!1)}},{key:"onSubmitClick",value:function(){"github"==this.state.mode?this.onGithubClick():this.onTucaoClick()}},{key:"onGithubClick",value:function(){var e="**小提示**\n\n> 简悦已经服务 100K+ 的用户，所以你的很多问题，或许已经被前人解决了，所以试着看看以下几个列表中的内容：\n\n- [用好 Github issues 能解决你大部分的疑问](https://github.com/Kenshin/simpread/issues/533)\n\n- [常见问题汇总](https://github.com/Kenshin/simpread/issues/618)\n\n- [代码段的专项整治](https://github.com/Kenshin/simpread/issues/500)\n\n***\n\n> 如上述内容无法解决你的问题，那么请将上述内容删除，并按照下方的提示书写~  😀 \n\n**请说明发生问题的环境**\n\n> 简悦包含了很多平台的版本，所以为了方便定位，建议告诉我一些必要信息\n\n- 操作系统 **"+window.navigator.platform+"**\n\n- 浏览器版本 **e.g. Chrome 78.0.3904.108**\n\n- 简悦版本 **"+this.props.version+"**\n\n- 发生问题的地址 <"+this.props.url+">\n\n**请描述你的问题**\n\n> 请使用可以 **准确定位到错误** 的语句来告诉我。😀\n\n**截图**\n\n> 一图胜千言，所以方便的话，可以试着贴图。\n",t=encodeURI("https://github.com/Kenshin/simpread/issues/new?title=<请描述你的问题>&labels=to do&body="+e);g.browser.runtime.sendMessage(k.Add(k.MESSAGE_ACTION.new_tab,{url:t}))}},{key:"onTucaoClick",value:function(){var e=this,t={nickname:this.props.anonymous?"简悦用户":this.props.user.name||"简悦用户",avatar:"https://api.adorable.io/avatars/285/"+(this.props.user.name||this.props.user.uid.substr(0,13))+".png",openid:this.props.user.uid.substr(0,13),clientVersion:this.props.version,clientInfo:window.navigator.userAgent,customInfo:"https://github.com/erguotou520/tucao-dingtalk-webhook"};$.ajax({url:this.props.product,method:"POST",data:t}).done(function(t,n,a){g.browser.runtime.sendMessage(k.Add(k.MESSAGE_ACTION.new_tab,{url:e.props.product}))}).fail(function(e){})}},{key:"render",value:function(){var t=this;return e.createElement("simpread-feedback",{ref:"target",class:"active"},0==this.state.rate?e.createElement("sr-block",{style:{width:"100%"}},e.createElement("sr-fb-head",null,e.createElement("sr-fb-label",null,"有了你们的帮助简悦才会变得更好 🙏")),e.createElement("sr-fb-content",null,e.createElement("sr-fb-label",null,"提交的站点，默认为当前页面的地址，可为空"),e.createElement(f.default,{
multi:!1,value:this.props.url,onChange:function(e){return t.onURLChange(e)}})),e.createElement("sr-fb-content",null,e.createElement("sr-fb-label",null,"支持两种提交方式"),e.createElement("span",{style:{display:"flex"}},e.createElement(b.default,{text:"有 Github Issues 帐号",type:"flat",waves:"md-waves-effect",color:"#fff",backgroundColor:"#2196F3",width:"50%",style:{"margin-left":"0","font-weight":"bold"},tooltip:{text:"如果有 Github 帐号，请首选此方式"},onClick:function(){return t.onChangeMode("github")}}),e.createElement(b.default,{text:"无 Github Issues 帐号",type:"flat",mode:"secondary",waves:"md-waves-effect",color:"#fff",backgroundColor:"#757575",width:"50%",style:{"margin-right":"0","font-weight":"bold"},tooltip:{text:"腾讯旗下的一款用户反馈收集系统，无需注册"},onClick:function(){return t.onChangeMode("tucao")}}))),"tucao"==this.state.mode&&e.createElement("sr-fb-content",null,e.createElement("sr-fb-content",null,e.createElement(u.default,{width:"100%",checked:this.props.anonymous,thumbedColor:"#2163f7",trackedColor:"#6699FF",waves:"md-waves-effect",label:"支持匿名提交，但建议不要勾选此项",onChange:function(e){return t.onAnonymousChange(e)}})),e.createElement("sr-fb-content",null,e.createElement("sr-fb-label",null,e.createElement("b",null,"吐个槽")," 是腾讯旗下的一款用户反馈收集系统，具有如下特点："),e.createElement("sr-fb-label",null,"· 无需注册，点击后会自动使用简悦的注册系统"),e.createElement("sr-fb-label",null,"· 如需实时收到反馈，请根据提示关注（腾讯官方）微信号"),e.createElement("sr-fb-label",null,"· 你的提交内容，他人无法看到"))),e.createElement("sr-fb-content",null,e.createElement("sr-fb-label",null,e.createElement("b",null,"方便的话，请帮助简悦，使其变得更好 👉 ",e.createElement("sr-fb-a",{onClick:function(){return window.open("https://wj.qq.com/s2/3611463/7260/","_blank")}},"调查问卷")))),e.createElement("sr-fb-footer",null,e.createElement(b.default,{text:"评个分",color:"#FF5252",waves:"md-waves-effect",style:{"font-weight":"bold"},onClick:function(){return t.setState({rate:!0})}}),e.createElement(b.default,{text:"取 消",mode:"secondary",color:"#333",waves:"md-waves-effect",onClick:function(){return t.onClose()}}),e.createElement(b.default,{text:"提 交",waves:"md-waves-effect",color:"#2163f7",style:{"font-weight":"bold"},onClick:function(){return t.onSubmitClick()}}))):e.createElement("sr-block",{style:{width:"100%"}},e.createElement("sr-close",{onClick:function(){return t.onClose()}},e.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e.createElement("path",{d:"M649.179 512l212.839-212.84c37.881-37.881 37.881-99.298 0-137.179s-99.298-37.881-137.179 0L512 374.821l-212.839-212.84c-37.881-37.881-99.298-37.881-137.179 0s-37.881 99.298 0 137.179L374.821 512 161.982 724.84c-37.881 37.881-37.881 99.297 0 137.179 18.94 18.94 43.765 28.41 68.589 28.41 24.825 0 49.649-9.47 68.589-28.41L512 649.179l212.839 212.84c18.94 18.94 43.765 28.41 68.589 28.41s49.649-9.47 68.59-28.41c37.881-37.882 37.881-99.298 0-137.179L649.179 512z",fill:"#E3E3E3"}))),e.createElement("sr-emojis",null,e.createElement("sr-emoji",{ref:"emoji"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("circle",{cx:"256",cy:"256",r:"256",fill:"#ffd93b"}),e.createElement("path",{d:"M512 256c0 141.44-114.64 256-256 256-80.48 0-152.32-37.12-199.28-95.28 43.92 35.52 99.84 56.72 160.72 56.72 141.36 0 256-114.56 256-256 0-60.88-21.2-116.8-56.72-160.72C474.8 103.68 512 175.52 512 256z",fill:"#f4c534"}),e.createElement("ellipse",{transform:"scale(-1) rotate(31.21 715.433 -595.455)",cx:"166.318",cy:"199.829",rx:"56.146",ry:"56.13",fill:"#fff"}),e.createElement("ellipse",{transform:"rotate(-148.804 180.87 175.82)",cx:"180.871",cy:"175.822",rx:"28.048",ry:"28.08",fill:"#3e4347"}),e.createElement("ellipse",{transform:"rotate(-113.778 194.434 165.995)",cx:"194.433",cy:"165.993",rx:"8.016",ry:"5.296",fill:"#5a5f63"}),e.createElement("ellipse",{transform:"scale(-1) rotate(31.21 715.397 -1237.664)",cx:"345.695",cy:"199.819",rx:"56.146",ry:"56.13",fill:"#fff"}),e.createElement("ellipse",{transform:"rotate(-148.804 360.25 175.837)",cx:"360.252",cy:"175.84",rx:"28.048",ry:"28.08",fill:"#3e4347"}),e.createElement("ellipse",{transform:"scale(-1) rotate(66.227 254.508 -573.138)",cx:"373.794",cy:"165.987",rx:"8.016",ry:"5.296",fill:"#5a5f63"}),e.createElement("path",{d:"M370.56 344.4c0 7.696-6.224 13.92-13.92 13.92H155.36c-7.616 0-13.92-6.224-13.92-13.92s6.304-13.92 13.92-13.92h201.296c7.696.016 13.904 6.224 13.904 13.92z",fill:"#3e4347"})),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("circle",{cx:"256",cy:"256",r:"256",fill:"#ffd93b"}),e.createElement("path",{d:"M512 256A256 256 0 0 1 56.7 416.7a256 256 0 0 0 360-360c58.1 47 95.3 118.8 95.3 199.3z",fill:"#f4c534"}),e.createElement("path",{d:"M328.4 428a92.8 92.8 0 0 0-145-.1 6.8 6.8 0 0 1-12-5.8 86.6 86.6 0 0 1 84.5-69 86.6 86.6 0 0 1 84.7 69.8c1.3 6.9-7.7 10.6-12.2 5.1z",fill:"#3e4347"}),e.createElement("path",{d:"M269.2 222.3c5.3 62.8 52 113.9 104.8 113.9 52.3 0 90.8-51.1 85.6-113.9-2-25-10.8-47.9-23.7-66.7-4.1-6.1-12.2-8-18.5-4.2a111.8 111.8 0 0 1-60.1 16.2c-22.8 0-42.1-5.6-57.8-14.8-6.8-4-15.4-1.5-18.9 5.4-9 18.2-13.2 40.3-11.4 64.1z",fill:"#f4c534"}),e.createElement("path",{d:"M357 189.5c25.8 0 47-7.1 63.7-18.7 10 14.6 17 32.1 18.7 51.6 4 49.6-26.1 89.7-67.5 89.7-41.6 0-78.4-40.1-82.5-89.7A95 95 0 0 1 298 174c16 9.7 35.6 15.5 59 15.5z",fill:"#fff"}),e.createElement("path",{d:"M396.2 246.1a38.5 38.5 0 0 1-38.7 38.6 38.5 38.5 0 0 1-38.6-38.6 38.6 38.6 0 1 1 77.3 0z",fill:"#3e4347"}),e.createElement("path",{d:"M380.4 241.1c-3.2 3.2-9.9 1.7-14.9-3.2-4.8-4.8-6.2-11.5-3-14.7 3.3-3.4 10-2 14.9 2.9 4.9 5 6.4 11.7 3 15z",fill:"#fff"}),e.createElement("path",{d:"M242.8 222.3c-5.3 62.8-52 113.9-104.8 113.9-52.3 0-90.8-51.1-85.6-113.9 2-25 10.8-47.9 23.7-66.7 4.1-6.1 12.2-8 18.5-4.2 16.2 10.1 36.2 16.2 60.1 16.2 22.8 0 42.1-5.6 57.8-14.8 6.8-4 15.4-1.5 18.9 5.4 9 18.2 13.2 40.3 11.4 64.1z",fill:"#f4c534"}),e.createElement("path",{d:"M155 189.5c-25.8 0-47-7.1-63.7-18.7-10 14.6-17 32.1-18.7 51.6-4 49.6 26.1 89.7 67.5 89.7 41.6 0 78.4-40.1 82.5-89.7A95 95 0 0 0 214 174c-16 9.7-35.6 15.5-59 15.5z",fill:"#fff"}),e.createElement("path",{d:"M115.8 246.1a38.5 38.5 0 0 0 38.7 38.6 38.5 38.5 0 0 0 38.6-38.6 38.6 38.6 0 1 0-77.3 0z",fill:"#3e4347"}),e.createElement("path",{d:"M131.6 241.1c3.2 3.2 9.9 1.7 14.9-3.2 4.8-4.8 6.2-11.5 3-14.7-3.3-3.4-10-2-14.9 2.9-4.9 5-6.4 11.7-3 15z",fill:"#fff"})),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("circle",{cx:"256",cy:"256",r:"256",fill:"#ffd93b"}),e.createElement("path",{d:"M512 256A256 256 0 0 1 56.7 416.7a256 256 0 0 0 360-360c58.1 47 95.3 118.8 95.3 199.3z",fill:"#f4c534"}),e.createElement("path",{d:"M336.6 403.2c-6.5 8-16 10-25.5 5.2a117.6 117.6 0 0 0-110.2 0c-9.4 4.9-19 3.3-25.6-4.6-6.5-7.7-4.7-21.1 8.4-28 45.1-24 99.5-24 144.6 0 13 7 14.8 19.7 8.3 27.4z",fill:"#3e4347"}),e.createElement("path",{d:"M276.6 244.3a79.3 79.3 0 1 1 158.8 0 79.5 79.5 0 1 1-158.8 0z",fill:"#fff"}),e.createElement("circle",{cx:"340",cy:"260.4",r:"36.2",fill:"#3e4347"}),e.createElement("g",{fill:"#fff"},e.createElement("ellipse",{transform:"rotate(-135 326.4 246.6)",cx:"326.4",cy:"246.6",rx:"6.5",ry:"10"}),e.createElement("path",{d:"M231.9 244.3a79.3 79.3 0 1 0-158.8 0 79.5 79.5 0 1 0 158.8 0z"})),e.createElement("circle",{cx:"168.5",cy:"260.4",r:"36.2",fill:"#3e4347"}),e.createElement("ellipse",{transform:"rotate(-135 182.1 246.7)",cx:"182.1",cy:"246.7",rx:"10",ry:"6.5",fill:"#fff"})),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("circle",{cx:"256",cy:"256",r:"256",fill:"#ffd93b"}),e.createElement("path",{d:"M407.7 352.8a163.9 163.9 0 0 1-303.5 0c-2.3-5.5 1.5-12 7.5-13.2a780.8 780.8 0 0 1 288.4 0c6 1.2 9.9 7.7 7.6 13.2z",fill:"#3e4347"}),e.createElement("path",{d:"M512 256A256 256 0 0 1 56.7 416.7a256 256 0 0 0 360-360c58.1 47 95.3 118.8 95.3 199.3z",fill:"#f4c534"}),e.createElement("g",{fill:"#fff"},e.createElement("path",{d:"M115.3 339c18.2 29.6 75.1 32.8 143.1 32.8 67.1 0 124.2-3.2 143.2-31.6l-1.5-.6a780.6 780.6 0 0 0-284.8-.6z"}),e.createElement("ellipse",{cx:"356.4",cy:"205.3",rx:"81.1",ry:"81"})),e.createElement("ellipse",{cx:"356.4",cy:"205.3",rx:"44.2",ry:"44.2",fill:"#3e4347"}),e.createElement("g",{fill:"#fff"},e.createElement("ellipse",{transform:"scale(-1) rotate(45 454 -906)",cx:"375.3",cy:"188.1",rx:"12",ry:"8.1"}),e.createElement("ellipse",{cx:"155.6",cy:"205.3",rx:"81.1",ry:"81"})),e.createElement("ellipse",{cx:"155.6",cy:"205.3",rx:"44.2",ry:"44.2",fill:"#3e4347"}),e.createElement("ellipse",{transform:"scale(-1) rotate(45 454 -421.3)",cx:"174.5",cy:"188",rx:"12",ry:"8.1",fill:"#fff"})),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("circle",{cx:"256",cy:"256",r:"256",fill:"#ffd93b"}),e.createElement("path",{d:"M512 256A256 256 0 0 1 56.7 416.7a256 256 0 0 0 360-360c58.1 47 95.3 118.8 95.3 199.3z",fill:"#f4c534"}),e.createElement("path",{d:"M232.3 201.3c0 49.2-74.3 94.2-74.3 94.2s-74.4-45-74.4-94.2a38 38 0 0 1 74.4-11.1 38 38 0 0 1 74.3 11.1z",fill:"#e24b4b"}),e.createElement("path",{d:"M96.1 173.3a37.7 37.7 0 0 0-12.4 28c0 49.2 74.3 94.2 74.3 94.2C80.2 229.8 95.6 175.2 96 173.3z",fill:"#d03f3f"}),e.createElement("path",{d:"M215.2 200c-3.6 3-9.8 1-13.8-4.1-4.2-5.2-4.6-11.5-1.2-14.1 3.6-2.8 9.7-.7 13.9 4.4 4 5.2 4.6 11.4 1.1 13.8z",fill:"#fff"}),e.createElement("path",{d:"M428.4 201.3c0 49.2-74.4 94.2-74.4 94.2s-74.3-45-74.3-94.2a38 38 0 0 1 74.4-11.1 38 38 0 0 1 74.3 11.1z",fill:"#e24b4b"}),e.createElement("path",{d:"M292.2 173.3a37.7 37.7 0 0 0-12.4 28c0 49.2 74.3 94.2 74.3 94.2-77.8-65.7-62.4-120.3-61.9-122.2z",fill:"#d03f3f"}),e.createElement("path",{d:"M411.3 200c-3.6 3-9.8 1-13.8-4.1-4.2-5.2-4.6-11.5-1.2-14.1 3.6-2.8 9.7-.7 13.9 4.4 4 5.2 4.6 11.4 1.1 13.8z",fill:"#fff"}),e.createElement("path",{d:"M381.7 374.1c-30.2 35.9-75.3 64.4-125.7 64.4s-95.4-28.5-125.8-64.2a17.6 17.6 0 0 1 16.5-28.7 627.7 627.7 0 0 0 218.7-.1c16.2-2.7 27 16.1 16.3 28.6z",fill:"#3e4347"}),e.createElement("path",{d:"M256 438.5c25.7 0 50-7.5 71.7-19.5-9-33.7-40.7-43.3-62.6-31.7-29.7 15.8-62.8-4.7-75.6 34.3 20.3 10.4 42.8 17 66.5 17z",fill:"#e24b4b"})),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e.createElement("g",{fill:"#ffd93b"},e.createElement("circle",{cx:"256",cy:"256",r:"256"}),e.createElement("path",{d:"M512 256A256 256 0 0 1 56.8 416.7a256 256 0 0 0 360-360c58 47 95.2 118.8 95.2 199.3z"})),e.createElement("path",{d:"M512 99.4v165.1c0 11-8.9 19.9-19.7 19.9h-187c-13 0-23.5-10.5-23.5-23.5v-21.3c0-12.9-8.9-24.8-21.6-26.7-16.2-2.5-30 10-30 25.5V261c0 13-10.5 23.5-23.5 23.5h-187A19.7 19.7 0 0 1 0 264.7V99.4c0-10.9 8.8-19.7 19.7-19.7h472.6c10.8 0 19.7 8.7 19.7 19.7z",fill:"#e9eff4"}),e.createElement("path",{d:"M204.6 138v88.2a23 23 0 0 1-23 23H58.2a23 23 0 0 1-23-23v-88.3a23 23 0 0 1 23-23h123.4a23 23 0 0 1 23 23z",fill:"#45cbea"}),e.createElement("path",{d:"M476.9 138v88.2a23 23 0 0 1-23 23H330.3a23 23 0 0 1-23-23v-88.3a23 23 0 0 1 23-23h123.4a23 23 0 0 1 23 23z",fill:"#e84d88"}),e.createElement("g",{fill:"#38c0dc"},e.createElement("path",{d:"M95.2 114.9l-60 60v15.2l75.2-75.2zM123.3 114.9L35.1 203v23.2c0 1.8.3 3.7.7 5.4l116.8-116.7h-29.3z"})),e.createElement("g",{fill:"#d23f77"},e.createElement("path",{d:"M373.3 114.9l-66 66V196l81.3-81.2zM401.5 114.9l-94.1 94v17.3c0 3.5.8 6.8 2.2 9.8l121.1-121.1h-29.2z"})),e.createElement("path",{d:"M329.5 395.2c0 44.7-33 81-73.4 81-40.7 0-73.5-36.3-73.5-81s32.8-81 73.5-81c40.5 0 73.4 36.3 73.4 81z",fill:"#3e4347"}),e.createElement("path",{d:"M256 476.2a70 70 0 0 0 53.3-25.5 34.6 34.6 0 0 0-58-25 34.4 34.4 0 0 0-47.8 26 69.9 69.9 0 0 0 52.6 24.5z",fill:"#e24b4b"}),e.createElement("path",{d:"M290.3 434.8c-1 3.4-5.8 5.2-11 3.9s-8.4-5.1-7.4-8.7c.8-3.3 5.7-5 10.7-3.8 5.1 1.4 8.5 5.3 7.7 8.6z",fill:"#fff",opacity:".2"})))),e.createElement("sr-stars",{ref:"stars"},e.createElement("i",{"data-balloon-pos":"up","aria-label":"吐个槽 😡",onMouseEnter:function(){return t.onStarHover(1)},onClick:function(){return t.onStarClick(1)},dangerouslySetInnerHTML:{__html:this.props.star}}),e.createElement("i",{"data-balloon-pos":"up","aria-label":"一般般 💔",onMouseEnter:function(){return t.onStarHover(2)},onClick:function(){return t.onStarClick(2)},dangerouslySetInnerHTML:{__html:this.props.star}}),e.createElement("i",{"data-balloon-pos":"up","aria-label":"还不错 😁",onMouseEnter:function(){return t.onStarHover(3)},onClick:function(){return t.onStarClick(3)},dangerouslySetInnerHTML:{__html:this.props.star}}),e.createElement("i",{"data-balloon-pos":"up","aria-label":"我喜欢 😘",onMouseEnter:function(){return t.onStarHover(4)},onClick:function(){return t.onStarClick(4)},dangerouslySetInnerHTML:{__html:this.props.star}}),e.createElement("i",{"data-balloon-pos":"up","aria-label":"棒棒哒 👍",onMouseEnter:function(){return t.onStarHover(5)},onClick:function(){return t.onStarClick(5)},dangerouslySetInnerHTML:{__html:this.props.star}})),e.createElement("sr-stars-footer",null,0==this.state.stars&&e.createElement(b.default,{text:"投个票，有你的参与简悦才能变得更美好",waves:"md-waves-effect",color:"#2163f7",style:{"font-weight":"bold"}}),this.state.stars>0&&this.state.stars<4&&e.createElement(b.default,{text:"吐个槽？",waves:"md-waves-effect",color:"#FF5252",style:{"font-weight":"bold"},onClick:function(){return t.onRateClick()}}),this.state.stars>3&&e.createElement(b.default,{color:"#fff",backgroundColor:"#2196F3",text:"谢谢，方便请前往 Chrome 应用商店投票 👉",waves:"md-waves-effect",style:{"font-weight":"bold"},onClick:function(){return t.onRateClick()}}))))}}]),n}(e.Component);w.defaultProps={user:{},url:"",version:"",anonymous:!1,rate:!1,product:"https://support.qq.com/product/117464",star:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="35" height="35"><path d="M512 837.12L255.6928 950.0672c-14.336 6.3488-31.1296-0.2048-37.4784-14.5408-1.9456-4.5056-2.7648-9.4208-2.2528-14.336l28.16-278.6304-186.5728-208.896c-10.4448-11.6736-9.4208-29.696 2.2528-40.1408 3.6864-3.2768 8.0896-5.5296 12.9024-6.5536L346.5216 327.68 487.424 85.7088c7.8848-13.6192 25.2928-18.1248 38.912-10.24 4.3008 2.4576 7.7824 6.0416 10.24 10.24L677.4784 327.68l273.7152 59.2896c15.36 3.2768 25.088 18.432 21.8112 33.792-1.024 4.8128-3.2768 9.216-6.5536 12.9024l-186.6752 208.896L807.936 921.1904c1.536 15.6672-9.8304 29.5936-25.3952 31.1296-4.9152 0.512-9.8304-0.3072-14.336-2.2528L512 837.12z" fill="#E3E3E3"></path></svg>',stared:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="35" height="35"><path d="M512 837.12L255.6928 950.0672c-14.336 6.3488-31.1296-0.2048-37.4784-14.5408-1.9456-4.5056-2.7648-9.4208-2.2528-14.336l28.16-278.6304-186.5728-208.896c-10.4448-11.6736-9.4208-29.696 2.2528-40.1408 3.6864-3.2768 8.0896-5.5296 12.9024-6.5536L346.5216 327.68 487.424 85.7088c7.8848-13.6192 25.2928-18.1248 38.912-10.24 4.3008 2.4576 7.7824 6.0416 10.24 10.24L677.4784 327.68l273.7152 59.2896c15.36 3.2768 25.088 18.432 21.8112 33.792-1.024 4.8128-3.2768 9.216-6.5536 12.9024l-186.6752 208.896L807.936 921.1904c1.536 15.6672-9.8304 29.5936-25.3952 31.1296-4.9152 0.512-9.8304-0.3072-14.336-2.2528L512 837.12z" fill="#FFB82F"</path></svg>'},w.propType={user:e.PropTypes.object,url:e.PropTypes.string,version:e.PropTypes.string,anonymous:e.PropTypes.bool,rate:e.PropTypes.bool,product:e.PropTypes.string},t.Render=c}).call(t,n(2),n(13))},199:function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return localStorage[s+"-"+e]}function r(e,t){localStorage[s+"-"+e]=t}function o(e){localStorage.removeItem(s+"-"+e)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s="simpread",l={VER:"version",COUNT:"count",FIRST:"firstload",PATCH:"patch-update"},c=5,d=void 0,p=function(){function e(){n(this,e)}return i(e,[{key:"Count",value:function(){var e=[a(l.COUNT)],t=e[0],n=void 0===t?0:t;return d=n,r(l.COUNT,++d),!(d>c&&(r(l.COUNT,0),1))}},{key:"Firstload",value:function(){var e=[a(l.FIRST)],t=e[0],n=void 0===t?"true":t;return"true"==n&&(r(l.FIRST,!1),!0)}},{key:"Version",value:function(e){r(l.VER,e)}},{key:"Patch",value:function(e,t){if("add"==e)r(l.PATCH,t);else{if("get"==e)return a(l.PATCH);"remove"==e&&o(l.PATCH)}}},{key:"curcount",get:function(){return d}}]),e}(),u=new p;t.default=u},200:function(e,t,n){"use strict";function a(e,t){o.browser.permissions.contains({permissions:e.permissions},function(n){0==n?chrome.permissions.request(e,function(e){t(e)}):t(n)})}function r(e,t){o.browser.permissions.remove({permissions:e.permissions},function(e){t(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Remove=t.Get=void 0;var o=n(3);t.Get=a,t.Remove=r},201:function(e,t,n){(function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n,a){"object"==t(e)&&e.exports?(e.exports=a(),e.exports.default=e.exports):n.timeago=a()}("undefined"!=typeof window?window:void 0,function(){function e(e){return e instanceof Date?e:isNaN(e)?/^\d+$/.test(e)?new Date(t(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(e)):new Date(t(e))}function t(e){return parseInt(e)}function n(e,n,a){n=m[n]?n:m[a]?a:"en";for(var r=0,o=e<0?1:0,i=e=Math.abs(e);e>=f[r]&&r<h;r++)e/=f[r];return e=t(e),r*=2,e>(0===r?9:1)&&(r+=1),m[n](e,r,i)[o].replace("%s",e)}function a(t,n){return((n=n?e(n):new Date)-e(t))/1e3}function r(e){for(var t=1,n=0,a=Math.abs(e);e>=f[n]&&n<h;n++)e/=f[n],t*=f[n];return a%=t,a=a?t-a:t,Math.ceil(a)}function o(e){return e.dataset.timeago?e.dataset.timeago:i(e,b)}function i(e,t){return e.getAttribute?e.getAttribute(t):e.attr?e.attr(t):void 0}function s(e,t){return e.setAttribute?e.setAttribute(g,t):e.attr?e.attr(g,t):void 0}function l(e){return i(e,g)}function c(e,t){this.nowDate=e,this.defaultLocale=t||"en"}function d(e,t){return new c(e,t)}var p="second_minute_hour_day_week_month_year".split("_"),u="秒_分钟_小时_天_周_月_年".split("_"),m={en:function(e,t){if(0===t)return["just now","right now"];var n=p[parseInt(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]},zh_CN:function(e,t){if(0===t)return["刚刚","片刻后"];var n=u[parseInt(t/2)];return[e+n+"前",e+n+"后"]}},f=[60,60,24,7,365/7/12,12],h=6,b="datetime",g="data-tid",v={};return c.prototype.doRender=function(e,t,o){var i,l=a(t,this.nowDate),c=this;e.innerHTML=n(l,o,this.defaultLocale),v[i=setTimeout(function(){c.doRender(e,t,o),delete v[i]},Math.min(1e3*r(l),2147483647))]=0,s(e,i)},c.prototype.format=function(e,t){return n(a(e,this.nowDate),t,this.defaultLocale)},c.prototype.render=function(e,t){void 0===e.length&&(e=[e]);for(var n=0,a=e.length;n<a;n++)this.doRender(e[n],o(e[n]),t)},c.prototype.setLocale=function(e){this.defaultLocale=e},d.register=function(e,t){m[e]=t},d.cancel=function(e){var t;if(e)(t=l(e))&&(clearTimeout(t),delete v[t]);else{for(t in v)clearTimeout(t);v={}}},d})}).call(t,n(155)(e))},253:function(e,t,n){(function(e,a,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function d(e){var t=e.length,n=53,a={username:"",password:""};return!(t>2*n)&&(t>=n?(a.username=e.substr(0,t-n),a.password=e.substr(t-n,t-(t-n)),a):e)}function p(t,n,a){403==t.code?(new e).Render(3,'当前账户已登录超过最大授权设备，请先登出不需要的设备，或者 <a target="_blank" href="https://simpread.pro/account">登出全部设备</a>'):401==t.code&&"uid"==t.status?(new e).Render(2,"<b>"+n+"</b> 登录成功，但对应的账户错误，请重新确认。"):401==t.code&&"region"==t.status?(new e).Render(2,"授权源错误，请使用提交的授权源进行登录。"):401==t.code&&"username"==t.status?(new e).Render(2,"<b>"+n+"</b> 登录成功，但对应的登录邮箱错误，请重新确认。"):401==t.code&&"password"==t.status?(new e).Render(2,"<b>"+n+"</b> 登录成功，但对应的登录密码错误，请重新确认。"):t.code==-1?(new e).Render(3,"服务器错误，请稍后再试。"):201==t.code&&((new e).Render(1,"登录成功，正在授权当前设备。"),a())}function u(t,n,a,r,o,i){P(function(){$.ajax({url:x.storage.service+"/accounts/service/publickey",type:"POST"}).done(function(s){var l=new JSEncrypt;l.setPublicKey(s),$.ajax({url:x.storage.service+"/accounts/service/register",type:"POST",data:{uid:t,finger:n,region:a,username:r,password:l.encrypt(o)}}).done(function(t){201==t.code?(new e).Render(1,"已成功绑定你的 <b>"+i+"</b> 账户。"):403==t.code?(new e).Render(3,"非法授权，如遇到异常情况请 <b>重启浏览器重新授权此设备</b>。"):401==t.code&&"uid"==t.status?(new e).Render(3,"当前账户并不是高级账户，如遇到异常情况请 <b>重启浏览器重新授权此设备</b>。"):t.code==-1&&(new e).Render(3,"服务器异常，请稍后再试。")}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})})}function m(t,n,a,r,o){P(function(){$.ajax({url:x.storage.service+"/accounts/service/publickey",type:"POST"}).done(function(i){var s=new JSEncrypt;s.setPublicKey(i),$.ajax({url:x.storage.service+"/accounts/service/signin",type:"POST",data:{uid:t,region:n,username:a,password:s.encrypt(r)}}).done(function(e){p(e,L(n),function(){window.dispatchEvent(new CustomEvent("account_action",{detail:{action:"config",config:o}}))})}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})})}function f(t,n,a){$.ajax({url:x.storage.service+"/accounts/service/signin",type:"POST",data:{uid:t,region:n,username:"",password:""}}).done(function(e){p(e,L(n),function(){a(e.uid,e.token)})}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})}function h(){var t=document.createElement("input"),n=$(t),a=function(t){if(t&&t.target&&t.target.result)try{var n=JSON.parse(t.target.result);(new e).Render(1,"导入成功，正在授权，请稍等..."),window.dispatchEvent(new CustomEvent("account_action",{detail:{action:"config",config:n}}))}catch(t){(new e).Render(3,"配置文件解析失败，请重新确认。")}};n.attr({type:"file",multiple:"false"}).one("change",function(e){var t=new FileReader;t.onload=a,t.readAsText(e.target.files[0])}),n.trigger("click")}function b(t,n,a){var r=(new e).Render({content:"正在登录，请稍等...",state:"loading"});O.jianguo.Read(n,a,O.jianguo.config_name,function(o){if(r.complete(),o&&404==o.status)(new e).Render(2,"登录成功，但并没有获取到简悦的配置文件。");else if(o&&401==o.status)(new e).Render(3,"登录坚果云失败，请重新确认邮箱与密码。");else if(o&&200==o.status){var i=JSON.parse(o.done);(new e).Render({content:"登录成功，正在确认权限...",delay:3e3}),m(i.user.uid,t,n,a,i)}})}function g(t,n){var a=void 0,r=O.dropbox;n?(a=(new e).Render({content:"正在授权，请稍等...",state:"loading"}),r.access_token=n,r.Read(r.config_name,function(n,o,i){if(a.complete(),i)(new e).Render(2,"获取 "+r.name+" 数据失败，请确保已存在简悦的配置文件。");else{var s=JSON.parse(o);s.user.uid==t?window.dispatchEvent(new CustomEvent("account_action",{detail:{action:"config",config:s}})):(new e).Render(2,"非法登录，授权账户与"+r.name+" 账户不一致。")}})):(r.New().Auth(),r.dtd.done(function(){a=(new e).Render({content:"正在登录，请稍等...",state:"loading"}),r.Read(r.config_name,function(t,n,o){if(a.complete(),o)(new e).Render(2,"获取 "+r.name+" 数据失败，请确保已存在简悦的配置文件。");else{var i=JSON.parse(n);f(i.user.uid,"dropbox",g)}})}))}function v(t,n){$.ajax({url:x.storage.service+"/accounts/service/signout",type:"POST",data:{uid:t,finger:n}}).done(function(t){201==t.code?(new e).Render(1,"已成功删除你的授权账户信息。"):403==t.code?(new e).Render(3,"非法授权，如遇到异常情况请 <b>重启浏览器重新授权此设备</b>。"):t.code==-1&&(new e).Render(3,"服务器异常，请稍后再试。")}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})}function k(){var e=function(e){return $(".menus-bg").hasClass("active")||$(".menus").hasClass("active")?($(".menus-bg").removeClass("active"),void $(".menus").removeClass("active")):($(e.currentTarget).parent().hasClass("second")?$(".menus-bg:last").addClass("active"):$(".menus-bg").addClass("active"),$(".menus").addClass("active"),void $(".menus-bg").one("click",function(){$(".menus-bg").removeClass("active"),$(".menus").removeClass("active")}))},t=a.createElement(T.default,{waves:"md-waves-effect md-waves-circle",color:"#fff",fontIcon:'<i class="fas fa-user"></i>',onClick:function(t){return e(t)}});r.render(t,$(".topnav.right")[0]),r.render(t,$(".header .nav.right")[0]);var n='<div class="account">\n                    <div class="menus-bg"></div>\n                    <div class="menus">\n                        '+(2==x.storage.user.rule&&0==S.auth.lock?'<sr-tooltip class="md-waves-effect" data-balloon-pos="left" aria-label="授权你的 '+("dropbox"==x.storage.option.save_at?"Dropbox":"坚果云")+' 作为登录方式？"><div class="md-waves-effect menu" action="register"><i class="fas fa-user-shield"></i>使用第三方作为登录？</div></sr-tooltip>\n                               <sr-tooltip class="md-waves-effect" data-balloon-pos="left" aria-label="解除对当前设备的绑定"><div class="md-waves-effect menu" action="logout"><i class="fas fa-power-off"></i>解除当前设备的授权？</div></sr-tooltip>':2==x.storage.user.rule&&1==S.auth.lock?'<sr-tooltip class="md-waves-effect" data-balloon-pos="left" aria-label="适用于已登录高级账户的重新授权"><div class="md-waves-effect menu" action="login"><i class="fas fa-user-shield"></i>恢复您的高级账户资格</div></sr-tooltip>':'<sr-tooltip class="md-waves-effect" data-balloon-pos="left" aria-label="适用于未登录高级账户"><div class="md-waves-effect menu" action="passport" aria-label=""><i class="fas fa-user-check"></i>登录</div></sr-tooltip>\n                                 <sr-tooltip class="md-waves-effect" data-balloon-pos="left" aria-label="适用于已登录高级账户的重新授权"><div class="md-waves-effect menu" action="login"><i class="fas fa-user-shield"></i>仅授权当前设备</div></sr-tooltip>\n                                 <sr-tooltip class="md-waves-effect" data-balloon-pos="left" aria-label="适用于购买后的首次绑定，非首次绑定请使用登录"><div class="md-waves-effect menu" action="bind" ><i class="fas fa-user-plus"></i>绑定您的高级账户资格</div></sr-tooltip>\n                                 <sr-tooltip class="md-waves-effect" data-balloon-pos="left" aria-label="适用于未升级高级账户"><div class="md-waves-effect menu" action="buy"><i class="fas fa-user-cog"></i>升级到高级账户</div></sr-tooltip>\n                                 <sr-tooltip class="md-waves-effect" data-balloon-pos="left" aria-label="适用于遗失 UID 后的找回"><div class="md-waves-effect menu" action="reset"><i class="fas fa-user-lock"></i>找回您的高级账户</div></sr-tooltip>')+"\n                    </div>\n                </div>";$(".topnav.right").append(n),$(".header .nav.right").append(n),$("body").on("click",".menus .menu",function(e){window.dispatchEvent(new CustomEvent("account_action",{detail:{action:$(e.currentTarget).attr("action")}})),$(".menus-bg")[0].click()})}function w(){0==$(".passportbg").length&&$("body").append('<div class="passportbg"></div>'),r.render(a.createElement(D,null),$(".passportbg")[0])}Object.defineProperty(t,"__esModule",{value:!0}),t.out=t.register=t.safestr=t.triggerRender=t.Render=void 0;var y=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),x=n(4),E=n(9),C=i(E),_=n(3),A=n(6),N=i(A),S=n(21),j=n(28),O=i(j),z=n(10),T=o(z),R=n(14),M=o(R),I=function(t){$.ajax({url:"https://static.simp.red/passport/jsencrypt.json",type:"GET"}).done(function(e){var n=e.jsencrypt;new Function(n)(),t()}).fail(function(t){(new e).Render({type:2,content:"登录时遇到了验证问题，请运行 <b>简悦 · 同步助手</b> 后请重新再试。"})})},P=function(e){$.ajax({url:"http://localhost:"+x.storage.option.remote.port+"/passport",type:"GET"}).done(function(t){var n=t.jsencrypt;new Function(n)(),e()}).fail(function(t){I(e)})},L=function(e){return"simpread"==e?"简悦":"jianguo"==e?"坚果云":e.replace(/\S/i,function(e){return e.toUpperCase()})},D=function(e){function t(){var e,n,a,r;s(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=a=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),a.state={jianguo:{username:"",password:""}},r=n,l(a,r)}return c(t,e),y(t,[{key:"jianguoOnChange",value:function(e,t){this.state.jianguo[e]=t}},{key:"signin",value:function(e){"jianguo_slide"==e?$(this.refs.jianguo).slideToggle():"simpread"==e?h():"jianguo"==e?b(e,this.state.jianguo.username,this.state.jianguo.password):"dropbox"==e&&g()}},{key:"help",value:function(e){"passport"==e?_.browser.runtime.sendMessage(N.Add(N.MESSAGE_ACTION.new_tab,{url:"http://ksria.com/simpread/docs/#/授权登录"})):(window.dispatchEvent(new CustomEvent("account_action",{detail:{action:e}})),this.close())}},{key:"close",value:function(){$(".passportbg passport").css({"animation-name":"fadeOutDown"}).on("animationend",function(e){r.unmountComponentAtNode($(".passportbg")[0]),$(".passportbg").remove()})}},{key:"render",value:function(){var e=this;return a.createElement("passport",null,a.createElement("passport-div",{class:"close"},a.createElement(T.default,{shape:"circle",width:"36px",color:"#333",backgroundColor:"#fff",icon:C.IconPath("close_dark_icon"),onClick:function(){return e.close()}})),a.createElement("passport-section",null,a.createElement("passport-div",{class:"topbar"},a.createElement("img",{src:_.browser.runtime.getURL("assets/images/icon48.png")}),a.createElement("passport-span",{class:"title"},"登录您的简悦 · 高级账户")),a.createElement("passport-div",null,a.createElement(T.default,{type:"flat",text:"使用简悦配置文件登录",width:"100%",icon:C.IconPath("simpread_login"),color:"#fff",backgroundColor:"#2196F3",waves:"md-waves-effect md-waves-button",tooltip:{text:"推荐使用简悦配置文件登录"},onClick:function(){return e.signin("simpread")}})),a.createElement("passport-div",{class:"footer"},a.createElement("passport-footer-group",null,a.createElement("passport-footer-line",null),a.createElement("passport-footer-text",null,"或者"),a.createElement("passport-footer-line",null))),a.createElement("passport-div",null,a.createElement(T.default,{type:"flat",text:"使用坚果云登录　　　",width:"100%",icon:C.IconPath("jianguo_login"),color:"#fff",backgroundColor:"#B96F3D",waves:"md-waves-effect md-waves-button",onClick:function(){return e.signin("jianguo_slide")}})),a.createElement("passport-div",{class:"jianguo",ref:"jianguo"},a.createElement(M.default,{placeholder:"请填入 坚果云的 WebDAV 用户名",onChange:function(t){return e.jianguoOnChange("username",t.target.value)}}),a.createElement(M.default,{password:!0,placeholder:"请填入 坚果云的 WebDAV 密码",onChange:function(t){return e.jianguoOnChange("password",t.target.value)}}),a.createElement("passport-span",{class:"login"},a.createElement(T.default,{color:"#B96F3D",waves:"md-waves-effect md-waves-circle",fontIcon:'<i class="fas fa-arrow-circle-right"></i>',onClick:function(){return e.signin("jianguo")}}))),a.createElement("passport-div",null,a.createElement(T.default,{type:"flat",text:"使用 Dropbox 登录 　",width:"100%",icon:C.IconPath("dropbox_login"),color:"#fff",backgroundColor:"#2081E3",waves:"md-waves-effect md-waves-button",onClick:function(){return e.signin("dropbox")}})),a.createElement("passport-div",null,a.createElement(T.default,{type:"flat",text:"如何使用第三方登录简悦？",width:"100%",color:"#333",backgroundColor:"transparent",waves:"md-waves-effect md-waves-button",onClick:function(){return e.help("passport")}})),a.createElement("passport-div",{class:"bottombar"},a.createElement(T.default,{type:"flat",text:"注册成为简悦高级账户",color:"#333",backgroundColor:"transparent",
waves:"md-waves-effect md-waves-button",onClick:function(){return e.help("buy")}}),a.createElement(T.default,{type:"flat",text:"找回您的高级账户",color:"#333",backgroundColor:"transparent",waves:"md-waves-effect md-waves-button",onClick:function(){return e.help("reset")}}))))}}]),t}(a.Component);t.Render=w,t.triggerRender=k,t.safestr=d,t.register=u,t.out=v}).call(t,n(7),n(2),n(13))},331:function(e,t,n){(function(e){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=n(3),l={root:{padding:"50px 0",backgroundColor:"#fff",fontSize:"1.6rem",color:"rgba(51, 51, 51, 0.87)",boxShadow:"0 1px 3px rgba(0, 0, 0, .12)"},title:{fontSize:"2rem",fontWeight:800},badges:{display:"flex",flexDirection:"row",justifyContent:"center",margin:"1.2em 0"},img:{padding:"5px"},stat:{padding:"1px 4px",color:"#fff",backgroundColor:"#009688",fontWeight:500,borderRadius:"5px"},href:{color:"rgba(51, 51, 51, 0.87)",cursor:"pointer"}},c={href:{version:"https://github.com/Kenshin/simpread/releases",website:"https://simpread.pro/",githubstar:"https://github.com/Kenshin/simpread",changelog:"http://ksria.com/simpread/changelog.html",feedback:"https://github.com/kenshin/simpread/issues",issues:"https://github.com/kenshin/simpread/issues"},badges:{version:"",website:"",githubstar:"",changelog:""}},d=function(t){function n(){return a(this,n),r(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return o(n,t),i(n,[{key:"onOpenClick",value:function(e){var t=$('<a target="_blank" style="display:none" href='+e+"></a>").appendTo("body");t[0].click(),t.remove()}},{key:"render",value:function(){var t=this,n=s.br.isFirefox()?"https://addons.mozilla.org/addon/simpread?src=external-ext":"https://chrome.google.com/webstore/detail/simpread-reader-view/ijllcpnolfcooahcekpamkbidhejabll/reviews";return e.createElement("div",{id:"labs",className:"about","data-page":"about",style:{width:"100%"}},e.createElement("div",{style:l.root},e.createElement("image",{src:s.browser.runtime.getURL("assets/images/icon128.png")}),e.createElement("div",{style:l.title},"简悦 SimpRead"),e.createElement("div",null,"为你提供「如杂志般沉浸式阅读体验」的扩展"),e.createElement("div",{style:l.badges},e.createElement("a",{href:c.href.version,target:"_blank"},e.createElement("img",{style:l.img,src:c.badges.version})),e.createElement("a",{href:c.href.website,target:"_blank"},e.createElement("img",{style:l.img,src:c.badges.website})),e.createElement("a",{href:c.href.githubstar,target:"_blank"},e.createElement("img",{style:l.img,src:c.badges.githubstar})),e.createElement("a",{href:c.href.changelog,target:"_blank"},e.createElement("img",{style:l.img,src:c.badges.changelog}))),e.createElement("div",{className:"home"},e.createElement("a",{href:"https://simpread.pro"},"简悦 ",e.createElement("i",{className:"fas fa-external-link-square-alt"}))," 的初衷：还原一个干净的阅读空间，提升你的阅读体验。",e.createElement("br",null),"截至到目前为止，简悦已经适配了 ",e.createElement("spn",{style:l.stat},this.props.site)," 类网址，详细请看 ",e.createElement("a",{href:"https://simpread.ksria.cn/sites/",target:"_blank"},"这里 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})),"。",e.createElement("br",null),"自从 ",e.createElement("span",{style:l.stat},this.props.option.create&&this.props.option.create.split(" ")[0])," 安装后，共使用了 ",e.createElement("spn",{style:l.stat},this.props.statistics.focus||0,"次")," 聚焦模式，以及 ",e.createElement("span",{style:l.stat},this.props.statistics.read||0,"次")," 阅读模式。",e.createElement("br",null))),e.createElement("div",{className:"label","data-head-level":"h1"},"帮助"),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick(n)}},e.createElement("div",{className:"more"},e.createElement("div",null,e.createElement("a",{style:l.href,target:"_blank"},"如果简悦对你有所帮助，请帮忙 ",e.createElement("b",{style:{color:"#195bf7","border-bottom":"2px dotted"}},e.createElement("i",{className:"fab fa-chrome"})," 五星好评"))),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("https://github.com/Kenshin/simpread")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"简悦 1.0 是一个开源的产品，代码托管在 Github 上"),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("https://simpread.pro/help")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"简悦的各种玩法，API 文档说明，高级账户等内容请访问 ",e.createElement("b",null,"简悦的知识库")),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("http://ksria.com/simpread/guide/")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"第一次使用简悦？或者并不了解「阅读模式」请前往 ",e.createElement("b",null,"新手入门")),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect"},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href},e.createElement("b",{onClick:function(){return t.props.onClick("welcome")}},"重看引导页面")," 或者 ",e.createElement("a",{style:l.href,target:"_blank",href:"http://ksria.com/simpread/welcome/version_2.2.0.html"},e.createElement("b",null,"重看当前版本"))," 的功能介绍"),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{className:"label","data-head-level":"h1"},"其它平台的简悦"),e.createElement("div",{style:{"padding-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("https://simpread.pro/#downloads")}},e.createElement("div",{className:"more"},e.createElement("div",null,e.createElement("a",{style:l.href,target:"_blank"},"简悦已经上线了 Firefox 版，UserScript 版，JSBox 版，总有一款适合你")),e.createElement("span",{className:"desc"},"包括但不限于：Chrome · Safari · Apple Safari · Microsoft Edge · Opera · iPhone · iPad"),e.createElement("span",{className:"arrow"}))),e.createElement("div",{className:"label","data-head-level":"h1"},"订阅"),e.createElement("div",{style:{"padding-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("https://simpread.pro/subscribe")}},e.createElement("div",{className:"more"},e.createElement("div",null,e.createElement("a",{style:l.href,target:"_blank"},"简悦支持多种订阅方式，包括：",e.createElement("b",{style:{color:"#b04632","border-bottom":"2px dotted"}},e.createElement("i",{className:"fas fa-envelope-open-text"})," Newsletter"),"  ",e.createElement("b",{style:{color:"#fca311","border-bottom":"2px dotted"}},e.createElement("i",{className:"fas fa-rss"})," RSS"),"  ",e.createElement("b",{style:{color:"#0088cc","border-bottom":"2px dotted"}},e.createElement("i",{className:"fab fa-telegram-plane"})," Telegram Channel"))),e.createElement("span",{className:"desc"},"订阅它们，以便快速的获取简悦的技巧，更新等内容。"),e.createElement("span",{className:"arrow"}))),e.createElement("div",{className:"label","data-head-level":"h1"},"反馈"),e.createElement("div",{style:{"padding-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("https://github.com/kenshin/simpread/issues")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"如果有任何问题请提交 ",e.createElement("b",{style:{color:"#24292e","border-bottom":"2px dotted"}},e.createElement("i",{className:"fab fa-github-alt"})," Issues ")),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("https://t.me/simpread")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"现在就加入 ",e.createElement("b",{style:{color:"#0088cc","border-bottom":"2px dotted"}},e.createElement("i",{className:"fab fa-telegram-plane"})," Telegram 群"),"，获取简悦的第一手资料"),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect"},e.createElement("div",{className:"more",style:{"font-weight":"bold",cursor:"default"}},"可以在 ",e.createElement("a",{style:l.href,target:"_blank",href:"https://twitter.com/wanglei001"},e.createElement("b",{style:{color:"#1da1f2","border-bottom":"2px dotted"}},e.createElement("i",{className:"fab fa-twitter"})," Twitter"))," 或 ",e.createElement("a",{style:l.href,target:"_blank",href:"https://weibo.com/23784148"},e.createElement("b",{style:{color:"#ff2025","border-bottom":"2px dotted"}},e.createElement("i",{className:"fab fa-weibo"})," 新浪微博"))," 上关注我",e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{className:"label","data-head-level":"h1"},"其它作品"),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("http://ksria.com/gnvm")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"GNVM - 使用 Go 语言编写的 Node.js 多版本管理器"),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("http://ksria.com/emoji")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"+Emoji - 一个 简单、可靠、纯粹、中文语义化的 Emoji 扩展"),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("http://ksria.com/sov2ex")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"SOV2EX - 一个便捷的 V2EX 站内搜索引擎（前端界面）"),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))),e.createElement("div",{style:{"margin-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onOpenClick("http://ksria.com/simptab")}},e.createElement("div",{className:"more"},e.createElement("a",{style:l.href,target:"_blank"},"简 Tab - 极简的 Chrome 新标签页扩展，望你每次打开都有好心情"),e.createElement("span",{style:{bottom:"11px"},className:"arrow"}))))}}]),n}(e.Component);t.default=d}).call(t,n(2))},332:function(e,t,n){(function(e,a,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),u=n(4),m=n(9),f=i(m),h=n(24),b=i(h),g=n(74),v=i(g),k=n(3),w=n(6),y=i(w),x=n(21),E=n(253),C=i(E),_=n(28),A=i(_),N=n(29),S=i(N),j=n(36),O=i(j),z=n(72),T=i(z),R=n(14),M=o(R),I=n(10),P=o(I),L=n(31),D=o(L),B={href:{color:"rgba(51, 51, 51, 0.87)",cursor:"pointer"}},F=function(t){function n(){var e,t,a,r;s(this,n);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return t=a=l(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),a.state={error:void 0,license:void 0,state:0,sn:void 0,sn_error:void 0},a.delay=void 0,a.return_code=1,r=t,l(a,r)}return c(n,t),p(n,[{key:"registry",value:function(){var e=this;x.auth.license=this.state.license,x.auth.registry(function(t){201==t.code&&x.auth.setToken(t.data),e.changeState(t.code||-1)})}},{key:"changeState",value:function(e){var t=this;return this.delay?void(1!=e&&(this.return_code=e)):void 0==this.delay&&1!=this.return_code?(this.return_code=1,void this.setState({state:e})):(this.setState({state:e}),void(1==e&&!function(){var e=0;t.delay=setInterval(function(){e>=100?(clearInterval(t.delay),t.delay=void 0,e=0,1!=t.return_code&&t.changeState(t.return_code)):(e+=10,$(".loading .progress .circle").attr("stroke-dasharray",e+", 100"),$(".loading .progress .percentage").text(e+"%"))},200)}()))}},{key:"close",value:function(){$(".sr-alertgp .alert").css({"animation-name":"fadeOutDown"}).on("animationend",function(e){a.unmountComponentAtNode($(".sr-alertgp")[0]),$(".sr-alertgp").remove()})}},{key:"onChangeLicense",value:function(e){var t=e.target.value.trim();""==t?this.setState({error:"授权码不可为空"}):/^[A-Za-z0-9]{4,9}(-[A-Za-z0-9]{6}){2}-[A-Za-z0-9]{4}$/gi.test(t)?this.setState({error:"",license:t}):this.setState({error:"授权码格式错误，请重新确认。"})}},{key:"onKeyDownLicense",value:function(e){8==e.keyCode&&""==e.target.value?this.setState({error:void 0}):13==e.keyCode&&""==this.state.error&&(this.setState({license:e.target.value}),this.onBindClick())}},{key:"onBindClick",value:function(){""==this.state.error&&(this.changeState(1),this.registry())}},{key:"onBindComplete",value:function(){this.setState({state:2})}},{key:"onRefresh",value:function(){var e="data:text/json;charset=utf-8,"+encodeURIComponent(u.storage.Export());A.Download(e,"simpread-key-内含UID，请勿遗失.json"),this.props.onAction("refresh"),this.close()}},{key:"render",value:function(){var t=this;return e.createElement("sr-alert",{class:"alert","data-state":this.state.state},e.createElement("div",{className:"close"},e.createElement(P.default,{shape:"circle",width:"36px",color:"#fff",backgroundColor:"transparent",icon:f.IconPath("close_icon"),onClick:function(){return t.close()}})),e.createElement("sr-alert-icon",{class:"sr-alert-icon md-waves-effect upgrade","data-state":this.state.state},e.createElement("img",{src:2==this.state.state?k.browser.runtime.getURL("assets/images/icon128.png"):k.browser.runtime.getURL("assets/images/"+([0,1,201].includes(this.state.state)?"upgrade":this.state.state==-1?"failed":"error")+".svg")}),2==this.state.state&&e.createElement("span",{className:"title"},"简悦 · 高级账户")),e.createElement("ar-alert-footer",{class:"actionbar"+(this.state.error?" error":""),"data-state":this.state.state},0==this.state.state&&e.createElement("div",{className:"notify"},e.createElement(M.default,{placeholder:"请输入您购买的密钥，回车或点击右侧 🔒 解锁您的高级账户权益",errortext:this.state.error,onKeyDown:function(e){return t.onKeyDownLicense(e)},onChange:function(e){return t.onChangeLicense(e)}}),e.createElement("span",{className:"unlock md-waves-effect"+(this.state.error?" error":""),dangerouslySetInnerHTML:{__html:this.props.unlock},onClick:function(){return t.onBindClick()}})),2==this.state.state&&e.createElement("div",{className:"caveat"},e.createElement("strong",null,"请务必留意以下几点："),e.createElement("ol",null,e.createElement("li",null,"购买 Licence 后并绑定到当前账户，此 Licence 作废，同时你的 ",e.createElement("strong",null,"配置文件（内含 UID）作为 KEY 不要丢失"),"。"),e.createElement("li",null,"首次授权后，建议 ",e.createElement("strong",null,"重启浏览器")," 以便你的高级账户权益生效。"),e.createElement("li",null,"在任何一台未授权的设备， 选项页 → 共通 → 从本地导入 ",e.createElement("strong",null,"步骤一得到的配置文件")," 后，再通过 ",e.createElement("strong",null,"选项页 → 账户 → 恢复您的高级账户资格"),"，来授权新设备。"),e.createElement("li",null,"在已授权的设备上，通过 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/同步",target:"_blank",rel:"noopener"},"同步功能")," 来同步你的配置文件（包含稍后读等数据）。"),e.createElement("li",null,"同一账户，可绑定三台设备，可通过 ",e.createElement("strong",null,"选项页 → 账户 → 退出账户")," 来解绑当前设备。"),e.createElement("li",null,"关于高级账户的常见问题，请留意 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/已购必读",target:"_blank",rel:"noopener"},"已购必读"),"。")),e.createElement("div",{className:"message md-waves-effect",onClick:function(){return t.onRefresh()}},e.createElement("span",null,"点击自动下载配置文件并刷新页面"))),0!=this.state.state&&2!=this.state.state&&e.createElement("div",{className:"notify"},e.createElement("div",{className:"loading"},e.createElement("svg",{viewBox:"0 0 36 36",className:"progress"},e.createElement("path",{className:"circle-bg",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),e.createElement("path",{className:"circle",strokeDasharray:"0, 100",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),e.createElement("text",{x:"18",y:"20.35",className:"percentage"},"0%")),[-1,401,403,404,422].includes(this.state.state)&&e.createElement("svg",{className:"failed",width:"70",height:"70"},e.createElement("path",{d:"m35,35l-9.3,-9.3"}),e.createElement("path",{d:"m35,35l9.3,9.3"}),e.createElement("path",{d:"m35,35l-9.3,9.3"}),e.createElement("path",{d:"m35,35l9.3,-9.3"})),201==this.state.state&&e.createElement("svg",{className:"success",width:"70",height:"70"},e.createElement("path",{d:"m31.5,46.5l15.3,-23.2"}),e.createElement("path",{d:"m31.5,46.5l-8.5,-7.1"}))),this.state.state==-1&&e.createElement("span",{className:"message md-waves-effect",onClick:function(){return t.changeState(0)}},"后台服务器出现了问题，点击重试（也可能是设置造成的问题，请查看 Github Issues 置顶）"),201==this.state.state&&e.createElement("span",{className:"message md-waves-effect",onClick:function(){return t.onBindComplete()}},"您已成功绑定，点击退出，即刻享用高级账户功能吧"),401==this.state.state&&e.createElement("span",{className:"message md-waves-effect",onClick:function(){return t.changeState(0)}},"绑定失败，点击后请重新确认输入"),403==this.state.state&&e.createElement("span",{className:"message md-waves-effect",onClick:function(){return t.changeState(0)}},"此密钥已被使用，点击重新确认或联系管理员（如果是绑定新设备请使用选项页右上角的登录功能）"),404==this.state.state&&e.createElement("span",{className:"message md-waves-effect",onClick:function(){return t.changeState(0)}},"此密钥无效，请确认输入是否正确"),422==this.state.state&&e.createElement("span",{className:"message md-waves-effect",onClick:function(){return t.changeState(0)}},"一个账户仅能绑定一个密钥"))))}}]),n}(e.Component);F.defaultProps={uid:void 0,unlock:'<svg height="30" version="1.1" width="30" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g>\n                    <g transform="matrix(0.60144232,0,0,0.51599595,1.7120429,0.5915785)">\n                        <path fill="#FFB600" d="m 74.243261,65.070058 -8.771,0 0,-15.417951 c 0,-9.437 -5.68,-15.116 -15.117,-15.116 -9.438,0 -15.114,5.679 -15.114,15.116 l 0,24.451 -8.771,0 0,-24.451 c 0,-13.171 10.716,-23.885 23.886,-23.885 13.172,0 23.89,10.714 23.89,23.885 -0.0037,8.148799 0.0066,7.275332 -0.003,15.417951 z" transform="matrix(1,0,0,1,0,0)"></path>\n                    </g>\n                    <rect fill="#FFB600" stroke-width="5" stroke-linecap="round" width="32" height="23" x="16" y="32.5"></rect>\n                  </g></svg>'};var U=function(t){function n(){var e,t,a,r;s(this,n);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return t=a=l(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),a.state={uid_err:"",name_err:"",email_err:"",sn:void 0,sn_error:"",change_uid:!1,vault:u.storage.option.save_at},r=t,l(a,r)}return c(n,t),p(n,[{key:"onChangeName",value:function(e){var t=e.target.value;/^([\u2E80-\u9FFFA-Za-z0-9]+)([ ]?)([\u2E80-\u9FFFA-Za-z0-9]*)$/gi.test(t)?this.setState({name_err:""}):this.setState({name_err:"只能包含中英文 + 数字 + 中间的空格"}),u.storage.user.name=t}},{key:"onChangeEmail",value:function(e){var t=e.target.value;/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/gi.test(t)?this.setState({email_err:""}):this.setState({email_err:"请确保输入正确的 Email 地址"}),u.storage.user.email=t}},{key:"onChangeContact",value:function(e){u.storage.user.contact=e.target.value.trim()}},{key:"onLoginComplete",value:function(e){u.storage.user.rule=2,u.storage.Write(function(){b.SendMessage("option",!0),x.auth.setLock(!1,200),k.browser.runtime.sendMessage(y.Add(y.MESSAGE_ACTION.sync_rule,{user:u.storage.user}))}),(new r).Render(1,"已授权当前设备，您当前是简悦高级账户，2秒后自动刷新。"),setTimeout(function(){"refresh"==e&&(location.href=location.href+"?mode=notice"),sessionStorage.getItem("option.remote.sync")?(sessionStorage.removeItem("option.remote.sync"),location.href=location.href+"?simpread_mode=signin_sync"):location.reload()},2e3)}},{key:"onLogoutComplete",value:function(e){u.storage.user.rule=1,u.storage.option.remote.sync=!1,u.storage.Write(function(){b.SendMessage("option",!0),x.auth.removeLock(),k.browser.runtime.sendMessage(y.Add(y.MESSAGE_ACTION.sync_rule,{user:u.storage.user}))}),204==e&&((new r).Render(1,"已成功解除当前设备的高级账户功能，2秒后页面自动刷新。"),setTimeout(function(){return location.reload()},2e3))}},{key:"onAlertClose",value:function(e){
history.pushState("","","/options/options.html#account"),"contact"==e.type&&k.browser.runtime.sendMessage(y.Add(y.MESSAGE_ACTION.new_tab,{url:"https://wj.qq.com/s2/6361600/a19b/"}))}},{key:"onPopupAlert",value:function(e,t,n){var a=this;T.Render(t,n,e?x.auth.code[e][n]:x.auth.code[n],function(e){return a.onAlertClose(e)})}},{key:"onPopupUpgrade",value:function(){O.Render(!1,x.auth.token,function(e){})}},{key:"onOpenClick",value:function(e){var t=$('<a target="_blank" style="display:none" href='+e+"></a>").appendTo("body");t[0].click(),t.remove()}},{key:"onTurnTab",value:function(){location.href=location.origin+"/options/options.html#common",window.dispatchEvent(new CustomEvent(y.MESSAGE_ACTION.turn_tab,{detail:{page:0}}))}},{key:"txtLicenseChange",value:function(e){void 0==e||""==e?this.setState({sn_error:"输入内容不能为空",sn:void 0}):/^\w{4}-\w{6}-\w{6}-\w{4}$/gi.test(e)?this.setState({sn_error:"",sn:e}):this.setState({sn_error:"请输入正确的兑换码",sn:void 0})}},{key:"onClipBoardClick",value:function(){S.Clipboard(this.props.user.uid,".clipboard"),(new r).Render("已复制成功。")}},{key:"onChangeUID",value:function(e){var t=e.target.value.trim();u.storage.user.uid=t}},{key:"onChangeUIDlick",value:function(){var e=this;2==u.storage.user.rule&&0==x.auth.lock?(new r).Render({type:2,content:"当前设备已授权为高级账户，无需修改。如需修改请先 <b>解除当前设备</b> 的高级账户权限？",action:"解除",state:"holdon",callback:function(t){"action"==t&&e.logout()}}):(new r).Render({type:2,content:'注意：请明确知晓此功能含义才可修改，否则会丢失你的 UID。修改 UID 的意义 <a href="https://github.com/Kenshin/simpread/discussions/1958" target="_blank"><b>直戳这里</b></a>。',action:"修改",state:"holdon",callback:function(t){"action"==t&&e.setState({change_uid:!0}),"action"==t&&(new r).Render(1,"解除成功，请修改你的 UID，修改后点击保存。")}})}},{key:"vaultOnChange",value:function(e){u.storage.option.save_at=e,this.setState({vault:e}),this.props.onChange(!0)}},{key:"componentWillMount",value:function(){var e=this;""==u.storage.user.uid&&(u.storage.user.uid=v.ID("user"),u.storage.Write(function(){e.setState({uid_err:""}),b.SendMessage("option",!0)},u.storage.simpread)),this.props.load.first&&this.stat()}},{key:"componentDidMount",value:function(){var e=this;if(x.auth.lock&&this.setState({lock:!0,message:x.auth.code[x.auth.lock_status]}),location.hash.startsWith("#account?mode=upgrade"))return setTimeout(function(){return e.onPopupUpgrade()},300),void history.pushState("","","/options/options.html#account");if(location.hash.startsWith("#account?mode=notice"))return(new r).Render({type:1,content:'<div style="margin-bottom:2px">嗨，很高兴能成为我们的 <b>高级会员</b></div>请勿遗失 <b>配置文件</b>，内含您的 ID，可将配置文件同步到您的 <b>坚果云 或 Dropbox</b>，如何配置  👉 <a href="http://ksria.com/simpread/docs/#/配置文件" target="_blank" style="margin-left:2px;">直戳这里</a>。<br><div style="margin-top:2px">首次授权建议 <b>重启浏览器</b>，以免出现授权验证问题。</div>',state:"holdon"}),void history.pushState("","","/options/options.html#account");if(location.hash.startsWith("#account?auth_error=")){var t=location.hash.replace("#account?auth_error=","").split(":"),n=t[1],a=function(e){return["401","-1001","-1006","-1008","-1009"].includes(e)?"siren":["-1002","-1004","-1003","-1007"].includes(e)?"lock":["-1005","-1010"].includes(e)?"warning":["-1"].includes(e)?"server":"bug"}(t[1]||t[0]);return void this.onPopupAlert(void 0,a,n?n:t[0])}location.hash.startsWith("#account?mode=login_confrim")&&(history.pushState("","","/options/options.html#account"),(new r).Render({type:1,content:"是否授权当前设备为高级账户？",action:"授权",state:"holdon",callback:function(t){"action"==t&&e.login()}})),window.addEventListener("account_action",function(t){"logout"==t.detail.action?e.logout():"passport"==t.detail.action?C.Render():"signin"==t.detail.action||("login"==t.detail.action?e.login():"bind"==t.detail.action?e.bind():"buy"==t.detail.action?e.onPopupUpgrade():"reset"!=t.detail.action&&"register"!=t.detail.action||("account"!=location.hash&&(location.href=location.origin+"/options/options.html#account",window.dispatchEvent(new CustomEvent(y.MESSAGE_ACTION.turn_tab,{detail:{page:7}}))),setTimeout(function(){$(".label."+t.detail.action)[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},300)))})}},{key:"newsletter",value:function(){var e=this;$.ajax({url:"https://api-wrap.simpread.pro/api/service/newsletter",method:"POST",data:JSON.stringify({email:this.props.user.email})}).done(function(t,n,a){var o=t.error;(t&&t.data||o&&o.email.includes("This email address was not confirmed yet."))&&(new r).Render({type:1,content:"嗨，您已经成功订阅简悦的 Newsletter，请在 <b>你提交信箱里面确认</b> 即可完成订阅。",action:"确认",state:"holdon",callback:function(t){var n="";e.props.user.email.includes("qq.com")?n="https://mail.qq.com/":e.props.user.email.includes("gmail.com")?n="https://gmail.com/":e.props.user.email.includes("outlook.com")?n="https://outlook.com/":e.props.user.email.includes("163.com")&&(n="https://163.com/"),n&&"action"==t&&k.browser.runtime.sendMessage(y.Add(y.MESSAGE_ACTION.new_tab,{url:n}))}})}).fail(function(e){(new r).Render({type:2,content:'嗨，订阅时出现了点问题，可以 <a target="blank" href="https://www.getrevue.co/profile/kenshin"><b>在此手动订阅 ↗</b></a>。',state:"holdon"})})}},{key:"stat",value:function(){$.ajax({url:u.storage.service+"/stats/service/count/",method:"POST",data:{type:this.props.load.update?"update":"first"}}).done(function(e,t,n){}).fail(function(e){})}},{key:"save",value:function(e){var t=this;return this.state.change_uid?/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/.test(u.storage.user.uid)?void(new r).Render({type:1,content:"新的 UID 为 <b>"+u.storage.user.uid+"</b>",action:"保存",state:"holdon",callback:function(e){"action"==e&&(t.props.onChange(!1),(new r).Render(1,"保存成功，3秒后页面自动刷新后生效！"),setTimeout(function(){location.href=location.href+"?mode=login_confrim",location.reload()},3e3))}}):void(new r).Render(3,"您输入的 UID 格式错误，<b>UID 为自动生成</b>，请确认您的输入。"):""==u.storage.user.name.trim()?void this.setState({name_err:"昵称不能为空"}):""==u.storage.user.email.trim()?void this.setState({email_err:"昵称不能为空"}):void $.ajax({url:u.storage.service+"/users/service/update/"+u.storage.user.uid,method:"POST",data:u.storage.user}).done(function(n,a,o){201==n.code?u.storage.Write(function(){b.SendMessage("option",!0),"notify"==e&&(new r).Render("更新成功，请刷新本页！"),"notify"==e&&(new r).Render({type:1,content:"嗨，是否同时 <b>订阅简悦的 Newletter</b>，获取第一手简悦资料？</br>关于简悦 · Newsletter 的介绍可以通过右侧目录直达。",action:"订阅",state:"holdon",callback:function(e){"action"==e&&t.newsletter()}})}):(new r).Render(2,"更新出现错误，请稍后再试！")}).fail(function(e){(new r).Render(2,"更新出现错误，请稍后再试！")})}},{key:"bind",value:function(){var t=this;0==$(".sr-alertgp").length&&$("body").append('<div class="sr-alertgp"></div>'),a.render(e.createElement(F,{uid:this.props.user.uid,onAction:function(e){return t.onLoginComplete(e)}}),$(".sr-alertgp")[0])}},{key:"login",value:function(){var e=this;x.auth.login(function(t){201==t.code?(x.auth.setToken(t.data),e.onLoginComplete()):403==t.code&&t.status==-1007?e.onPopupAlert(void 0,"lock",t.status):403==t.code&&t.status==-1003?e.onPopupAlert(void 0,"lock",t.status):403==t.code&&t.status==-1005?e.onPopupAlert(void 0,"warning",t.status):403==t.code?e.onPopupAlert(void 0,"warning",t.status):t.code==-1&&e.onPopupAlert("login","server",t.code)})}},{key:"logout",value:function(){var e=this;x.auth.logout(function(t){204==t.code?(x.auth.removeToken(),e.onLogoutComplete(t.code)):403==t.code&&t.status==-1006?(x.auth.removeToken(),e.onLogoutComplete(t.code),e.onPopupAlert(void 0,"siren",t.status)):403==t.code?(x.auth.removeToken(),e.onLogoutComplete(t.code),e.onPopupAlert(void 0,"warning",t.status)):t.code==-1&&e.onPopupAlert("logout","server",t.code)})}},{key:"reset",value:function(){if(void 0==this.state.sn)return void this.setState({sn_error:"输入内容不能为空",sn:void 0});var e=(new r).Render({content:"UID 找回中，请稍等...",state:"loading"});x.auth.reset(this.state.sn,function(t){e.complete(),200==t.code?(new r).Render({type:1,content:"已成功找回你的 UID，剩余找回次数：<b>"+t.data.reset+"</b> 次<br>点击 <b>下载</b> 则会下载当前正确的配置文件后继续下一步<br>点击 <b>继续</b> 则不下载配置文件直接继续下一步",action:"下载",cancel:"继续",callback:function(e){if(u.storage.user.uid=t.data.uid,u.storage.user.rule=1,"action"==e){var n="data:text/json;charset=utf-8,"+encodeURIComponent(u.storage.Export());A.Download(n,"simpread-key-内含UID，请勿遗失.json")}u.storage.Write(function(){b.SendMessage("option",!0),(new r).Render({type:1,content:"已设置成功，点击刷新后，请通过 <b>恢复您的高级账户资格</b> 来重新授权当前设备。",action:"刷新",callback:function(e){location.reload()}})})}}):403==t.code?(new r).Render({type:3,content:"你的找回次数已超过三次，请 <b>联系管理员</b>。",state:"holdon"}):404==t.code?(new r).Render(2,"你输入的兑换码不存在，请重新输入。"):(new r).Render(3,"服务器错误，请稍候再试。")})}},{key:"register",value:function(){var e=function(e,t,n){T.Render(e,t,n,function(e){"contact"==e.type&&k.browser.runtime.sendMessage(y.Add(y.MESSAGE_ACTION.new_tab,{url:"https://wj.qq.com/s2/6361600/a19b/"}))})};k.browser.runtime.sendMessage(y.Add(y.MESSAGE_ACTION.verify_rule,{type:"now",uid:u.storage.user.uid}),function(t){t?(x.auth.lock=!0,x.auth.lock_status=t.status,e("lock",t.code,x.auth.code[t.status])):!function(){var e=u.storage.option.save_at,t=A.Name(u.storage.option.save_at);u.storage.Safe(function(){var n=u.storage.secret[e];if(""==n.access_token)(new r).Render(2,"使用此功能的前提是：请先授权你的 "+t);else{var a=function(){var a=C.safestr(n.password||n.access_token);if("boolean"==typeof a&&0==a)return(new r).Render(2,"密码过长导致无法加密，请使用 <b>坚果云</b> 授权方案。"),{v:void 0};var o=void 0,i=void 0;"object"==("undefined"==typeof a?"undefined":d(a))?(o=a.username,i=a.password):(o=n.username,i=n.password),x.auth.getFinger(function(n){C.register(u.storage.user.uid,n,e,o,i,t)})}();if("object"===("undefined"==typeof a?"undefined":d(a)))return a.v}})}()})}},{key:"signout",value:function(){(new r).Render({content:"是否删除您的授权信息？",action:"确认",state:"holdon",callback:function(e){"cancel"!=e&&x.auth.getFinger(function(e){C.out(u.storage.user.uid,e)})}})}},{key:"render",value:function(){var t=this,n=this.props.user.avatar;""==n&&(n=this.props.user.name.substr(0,1));var a=this.props.idx.indexOf(n.toLowerCase());a==-1&&(a=0);var r=this.props.colors[a];x.auth.uid=this.props.user.uid;var o="";return e.createElement("div",{id:"labs","data-page":"account",style:{width:"100%"}},e.createElement("div",{className:"label","data-head-level":"h1"},"会员计划"),e.createElement("div",{className:"lab group",style:{"padding-top":"25px"}},e.createElement("div",{className:"lab horz",style:{"padding-top":"25px"}},e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"base"},e.createElement("div",{className:"card base"},e.createElement("span",{className:"corners"},e.createElement("img",{src:k.browser.runtime.getURL("assets/images/premium_disable.svg")})),e.createElement("span",{className:"icon md-waves-effect"},e.createElement("img",{src:k.browser.runtime.getURL("assets/images/base.svg")})),e.createElement("span",{className:"label"},"基础账户"),e.createElement("span",{className:"check"+(x.auth.token?"":" enable"),dangerouslySetInnerHTML:{__html:this.props.check_icon}}))),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"pro"},e.createElement("div",{className:"card pro"},e.createElement("span",{className:"corners"},e.createElement("img",{src:k.browser.runtime.getURL("assets/images/premium_enable.svg")})),e.createElement("span",{className:"icon md-waves-effect"},e.createElement("img",{src:k.browser.runtime.getURL("assets/images/pro.svg")})),e.createElement("span",{className:"label senior"},e.createElement("span",{className:"status normal"},"高级账户"),e.createElement("span",{className:"status unlock",onClick:function(){return t.onPopupUpgrade()}},e.createElement("icon",{className:"md-waves-effect"},e.createElement("i",{className:"fas fa-"+(x.auth.token?"unlock":"lock")}),x.auth.token?" 您已解锁全部的高级账户权利":"解锁您的高级账户权利"))),e.createElement("span",{className:"check"+(x.auth.token?" enable":""),dangerouslySetInnerHTML:{__html:this.props.check_icon}})))),x.auth.token?e.createElement("div",{className:"lab horz",style:{"padding-top":"25px"}},e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"rights"},e.createElement("div",{className:"card rights"},this.state.lock&&e.createElement("span",{className:"locked"},e.createElement("i",{className:"fas fa-lock"}),e.createElement("span",{className:"status lock"},e.createElement("icon",{className:"md-waves-effect"},this.state.message))),e.createElement("span",{className:"icon md-waves-effect"},e.createElement("img",{src:k.browser.runtime.getURL("assets/images/rights.svg")})),e.createElement("span",{className:"label senior"},e.createElement("span",{className:"status normal"},"查看您的权益"),e.createElement("span",{className:"status unlock",onClick:function(){return t.onPopupUpgrade()}},e.createElement("icon",{className:"md-waves-effect"},e.createElement("i",{className:"fas fa-book-open"}),"查看您的权益"))))),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"logout"},e.createElement("div",{className:"card logout"},e.createElement("span",{className:"icon"},e.createElement("img",{src:k.browser.runtime.getURL("assets/images/logout.svg")})),e.createElement("span",{className:"label senior"},e.createElement("span",{className:"status normal"},"退出登录？"),e.createElement("span",{className:"status unlock",onClick:function(){return t.logout()}},e.createElement("icon",{className:"md-waves-effect"},e.createElement("i",{className:"fas fa-sign-out-alt"}),"取消当前设备的授权")))))):e.createElement("div",{className:"lab horz",style:{"padding-top":"25px"}},e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"bind"},e.createElement("div",{className:"card bind"},e.createElement("span",{className:"icon md-waves-effect"},e.createElement("img",{src:k.browser.runtime.getURL("assets/images/bind.png")})),e.createElement("span",{className:"label senior"},e.createElement("span",{className:"status normal"},"绑定您的高级账户资格"),e.createElement("span",{className:"status unlock","aria-label":"仅限首次绑定，如已绑定请使用右侧 → 恢复您的购买资格","data-balloon-pos":"up",onClick:function(){return t.bind()}},e.createElement("icon",{className:"md-waves-effect"},e.createElement("i",{className:"fas fa-gift"}),"马上开始吧"))))),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"restore"},e.createElement("div",{className:"card restore"},e.createElement("span",{className:"icon md-waves-effect"},e.createElement("img",{src:k.browser.runtime.getURL("assets/images/restore.svg")})),e.createElement("span",{className:"label senior"},e.createElement("span",{className:"status normal"},"已购买高级账户？"),e.createElement("span",{className:"status unlock",onClick:function(){return t.login()}},e.createElement("icon",{className:"md-waves-effect"},e.createElement("i",{className:"fas fa-rocket"}),"恢复您的高级账户资格")))))),o),e.createElement("div",{className:"label","data-head-level":"h1"},"用户信息"),e.createElement("div",{className:"lab userinfo",style:{"padding-top":"25px"}},e.createElement("sr-opt-gp",{style:{"justify-content":"center"}},n&&e.createElement("span",{className:"avatar",style:{"background-color":r}},n.toUpperCase())),e.createElement("sr-opt-gp",null,e.createElement("sr-tooltip",{class:"clipboard","data-balloon-pos":"left","aria-label":"点击复制当前标识"},e.createElement("div",{className:"md-waves-effect",onClick:function(){return t.onClipBoardClick()}},e.createElement("span",null,e.createElement("i",{className:"fas fa-clipboard"})))),e.createElement("sr-tooltip",{class:"change","data-balloon-pos":"left","aria-label":"修改你的 UID"},e.createElement("div",{className:"md-waves-effect",onClick:function(){return t.onChangeUIDlick()}},e.createElement("span",null,e.createElement("i",{className:"fas fa-pen-square"})))),e.createElement(M.default,{floatingtext:"标识 / UID",placeholder:"系统自动生成，不可更改",errortext:this.state.uid_err,value:this.props.user.uid,disable:!this.state.change_uid,onChange:function(e){return t.onChangeUID(e)}})),e.createElement("sr-opt-gp",null,e.createElement(M.default,{floatingtext:"昵称",placeholder:"只能包含中英文 + 数字 + 中间的空格",errortext:this.state.name_err,value:this.props.user.name,onChange:function(e){return t.onChangeName(e)},disable:!1})),e.createElement("sr-opt-gp",null,e.createElement(M.default,{floatingtext:"邮箱",placeholder:"请使用真实且有效的邮箱地址",errortext:this.state.email_err,value:this.props.user.email,onChange:function(e){return t.onChangeEmail(e)},disable:!1})),e.createElement("sr-opt-gp",null,e.createElement(M.default,{floatingtext:"联络方式",placeholder:"微博 / 微信 等一切可以联络到你的方式",value:this.props.user.contact,onChange:function(e){return t.onChangeContact(e)},disable:!1})),e.createElement("sr-opt-gp",null,e.createElement(P.default,{text:"保 存",waves:"md-waves-effect",color:"#fff",backgroundColor:"rgb(253, 106, 101)",width:"100%",icon:f.IconPath("save_icon"),onClick:function(){return t.save("notify")}}))),2==u.storage.user.rule&&e.createElement("div",null,e.createElement("div",{className:"label register","data-head-level":"h1"},"授权登录"),e.createElement("div",{className:"lab userinfo",style:{"padding-top":"25px"}},e.createElement("span",{className:"sublabel"},"1. 简悦 · 高级账户目前支持 ",e.createElement("b",null,"第三方授权登录"),"，包括：",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/坚果云"},"坚果云")," 与 ",e.createElement("b",null,"Dropbox"),"，详细 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/授权登录"},"请看这里"),"。"),e.createElement("span",{className:"sublabel"},"2. 授权后可以在新设备使用使用你的 ",e.createElement("b",null,"坚果云")," 或 ",e.createElement("b",null,"Dropbox")," 账户登录简悦。"),e.createElement("span",{className:"sublabel"},"3. 授权后意味着简悦会记录（已加密，非明文保存）你的授权登录信息。"),e.createElement("span",{className:"sublabel"},"4. 授权与同步盘的方案保持一致，例如：你选择了 ",e.createElement("b",null,"坚果云")," 作为同步盘的话，则 ",e.createElement("b",null,"默认使用坚果云作为授权登录账户"),"。"),e.createElement("span",{className:"sublabel"},"5. 你可以在下方更改你的同步盘，也可以 ",e.createElement("b",null,"随时删除")," 你的授权信息，如需请留意下方链接。"),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},e.createElement("div",{className:"h2"},"请选择一个服务作为保存配置文件的同步盘："),e.createElement(D.default,{name:A.Name(u.storage.option.save_at),items:this.props.vault,width:"110px",onChange:function(e){return t.vaultOnChange(e)}})),e.createElement(P.default,{style:{margin:"10px 0 0 0"},width:"100%",text:"授权你的 "+("dropbox"==this.state.vault?"Dropbox":"坚果云")+" 作为登录方式？",waves:"md-waves-effect",color:"#fff",backgroundColor:"rgb(253, 106, 101)",fontIcon:'<i style="color:#fff;" class="fas fa-user-shield"></i>',onClick:function(){return t.register()}}),e.createElement("div",{className:"unsubscribe",onClick:function(){return t.signout()}},e.createElement("span",{className:"md-waves-effect"},"点击这里随时删除你的授权")))),e.createElement("div",{className:"label","data-head-level":"h1"},"订阅中心"),e.createElement("div",{className:"lab subscribe",style:{display:"flex","flex-direction":"column"}},e.createElement("sr-opt-gp",null,e.createElement(M.default,{placeholder:"请输入你的 Email 地址，即可完成订阅",errortext:this.state.email_err,value:this.props.user.email,onChange:function(e){return t.onChangeEmail(e)},disable:!1})),e.createElement("sr-opt-gp",null,e.createElement(P.default,{text:"订阅 Newsletter",style:{margin:"0"},waves:"md-waves-effect",color:"#fff",backgroundColor:"rgb(253, 106, 101)",width:"100%",fontIcon:'<i style="color:#fff;" class="fas fa-envelope-open"></i>',onClick:function(){return t.newsletter()}})),e.createElement("div",{style:{padding:"10px 0",position:"relative"},className:"md-waves-effect"},e.createElement("div",{className:"more"},e.createElement("span",{className:"desc"},"简悦不仅只是一个 ",e.createElement("b",null,"阅读模式")," 或 ",e.createElement("b",null,"剪藏/导出工具"),"，它是一个 ",e.createElement("b",null,"知识管理系统"),"，因其灵活性导致具有 ",e.createElement("a",{target:"_blank",href:"https://github.com/Kenshin/simpread/discussions/categories/使用技巧"},e.createElement("b",null,"多种用法 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 我会不定期在 ",e.createElement("a",{target:"_blank",href:"https://github.com/Kenshin/simpread/discussions/categories/使用技巧"},e.createElement("b",null,"订阅中心 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 提到的渠道公布简悦的一些使用方法，建议简悦用户订阅。",e.createElement("br",null),"除了 Newsletter 外，简悦支持多种订阅方式，包括：RSS Telegram Channel 等。",e.createElement("br",null),"查看 Newsletter 往期订阅 ",e.createElement("a",{target:"blank",href:"https://www.getrevue.co/profile/kenshin"},e.createElement("b",null,"直戳这里 ",e.createElement("i",{className:"fas fa-external-link-square-alt"}))),"。"),e.createElement("span",{className:"arrow",onClick:function(){return t.onOpenClick("https://simpread.pro/subscribe")}})))),2==u.storage.user.rule&&e.createElement("div",null,e.createElement("div",{className:"label","data-head-level":"h1"},"高级账户须知"),e.createElement("div",{className:"lab userinfo",style:{"padding-top":"25px"}},e.createElement("span",{className:"sublabel"},"1. 兑换码使用一次即作废，绑定时的配置文件则为 ",e.createElement("b",null,"授权高级账户凭证"),"。"),e.createElement("span",{className:"sublabel"},"2. 你的配置文件 ",e.createElement("b",null,"即为 KEY"),"，不要丢失，支持同步到 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/同步"},e.createElement("b",null,"坚果云 或 Dropbox")),"。"),e.createElement("span",{className:"sublabel"},"3. 在任意浏览器导入配置文件后通过 ",e.createElement("b",null,"恢复你的高级账户资格")," 来授权当前设备。"),e.createElement("span",{className:"sublabel"},"4. 同一账户，可绑定三台设备，可通过 ",e.createElement("b",null,"选项页 → 账户 → 退出账户")," 来解绑当前设备。"),e.createElement("span",{className:"sublabel"},"5. 关于高级账户的更多说明请访问 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/已购必读"},e.createElement("b",null,"已购必读")),"。"))),e.createElement("div",{className:"label reset","data-head-level":"h1"},"找回UID"),e.createElement("div",{className:"lab",style:{"padding-top":"25px"}},e.createElement("sr-opt-gp",null,e.createElement(M.default,{placeholder:"请输入你的兑换码 / 注册码 / License",errortext:this.state.sn_error,onChange:function(e){return t.txtLicenseChange(e.target.value)}})),e.createElement("sr-opt-gp",null,e.createElement(P.default,{text:"找 回",style:{margin:"0"},waves:"md-waves-effect",color:"#fff",backgroundColor:"rgb(253, 106, 101)",width:"100%",fontIcon:'<i class="fas fa-key"></i>',onClick:function(){return t.reset()}})),e.createElement("span",{className:"sublabel"},"如果 ",e.createElement("strong",null,"因丢失 UID 无法使用高级账户")," 功能的话，可以使用此功能找回，等同于 ",e.createElement("a",{target:"_blank",href:"https://simpread.pro/reset",style:{color:" #FF5252",borderBottom:"2px dotted",fontSize:"10px",fontWeight:"bold",cursor:"pointer"}},"简悦 · 高级账户自助找回平台")),e.createElement("span",{className:"sublabel"},"注意，此方式 ",e.createElement("b",null,"仅可使用三次"),"，请注意留存你的 UID")),e.createElement("div",{className:"label","data-head-level":"h1"},"辅助平台"),e.createElement("div",{className:"lab",style:{display:"flex","flex-direction":"column"}},e.createElement("div",{style:{padding:"10px 0",position:"relative"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("http://ksria.com/simpread/docs/#/已购必读")}},e.createElement("div",{className:"more"},e.createElement("div",{className:"h2"},e.createElement("a",{style:B.href,target:"_blank"},"已购必读")),e.createElement("span",{className:"desc"},"升级到简悦 · 高级账户后，请建议阅读此文档"),e.createElement("span",{className:"arrow"}))),e.createElement("div",{style:{padding:"10px 0",position:"relative"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("https://simpread.pro/account")}},e.createElement("div",{className:"more"},e.createElement("div",{className:"h2"},e.createElement("a",{style:B.href,target:"_blank"},"简悦 · 高级账户平台")),e.createElement("span",{className:"desc"},"当你的账户被锁定，可通过此平台自助解锁"),e.createElement("span",{className:"arrow"}))),e.createElement("div",{style:{padding:"10px 0",position:"relative"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("https://simpread.pro/reset")}},e.createElement("div",{className:"more"},e.createElement("div",{className:"h2"},e.createElement("a",{style:B.href,target:"_blank"},"简悦 · 高级账户自助找回平台")),e.createElement("span",{className:"desc"},"如果因丢失 UID 无法使用高级账户功能的话，请使用此平台自助找回"),e.createElement("span",{className:"arrow"}))),e.createElement("div",{style:{padding:"10px 0",position:"relative"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("https://wj.qq.com/s2/7131520/9679/")}},e.createElement("div",{className:"more"},e.createElement("div",{className:"h2"},e.createElement("a",{style:B.href,target:"_blank"},"简悦 · 自助系统")),e.createElement("span",{className:"desc"},"当发生任何关于简悦的使用问题，可通过此平台自助获取答案"),e.createElement("span",{className:"arrow"})))))}}]),n}(e.Component);U.defaultProps={vault:[{name:"坚果云",value:"jianguo"},{name:"Dropbox",value:"dropbox"}],colors:["rgb(255, 114, 129)","rgb(64, 196, 255)","rgb(255, 157, 68)","rgb(140, 216, 66)","rgb(251, 88, 74)","rgb(255, 229, 95)","rgb(0, 230, 118)","rgb(0, 169, 240)","rgb(128, 222, 234)","rgb(247, 77, 95)","rgb(255, 206, 73)","rgb(250, 154, 63)","rgb(255, 114, 129)","rgb(57, 194, 241)","rgb(141, 196, 72)","rgb(128, 222, 234)","rgb(83, 109, 254)","rgb(255, 183, 77)","rgb(197, 231, 99)","rgb(239, 83, 80)","rgb(0, 230, 118)","rgb(57, 194, 241)","rgb(100, 181, 246)","rgb(119, 232, 86)","rgb(239, 83, 80)","rgb(0, 203, 232)","rgb(0, 230, 118)","rgb(255, 196, 0)","rgb(255, 206, 73)","rgb(167, 134, 116)","rgb(86, 209, 216)","rgb(253, 208, 174)","rgb(197, 231, 99)","rgb(239, 88, 74)","rgb(249, 79, 40)","rgb(255, 88, 100)","rgb(197, 231, 99)","rgb(0, 177, 251)","rgb(255, 206, 73)","rgb(251, 182, 75)","rgb(197, 231, 99)","rgb(35, 180, 210)","rgb(255, 206, 73)","rgb(255, 229, 95)","rgb(64, 196, 255)","rgb(255, 114, 129)","rgb(119, 232, 86)","rgb(139, 223, 231)","rgb(0, 169, 240)"],idx:"abcdefghijklmnopqrstuvwxyz0123456789",check_icon:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="30" height="30"><path d="M511.322571 63.620993c-246.971881 0-447.189925 200.206788-447.189925 447.184809s200.218044 447.184809 447.189925 447.184809c246.978021 0 447.189925-200.206788 447.189925-447.184809S758.300592 63.620993 511.322571 63.620993L511.322571 63.620993zM767.82041 394.804834 478.605426 684.031075l-0.011256 0.016373c-13.331633 13.331633-33.667797 15.410991-49.185212 6.249331-2.87856-1.699712-5.584182-3.790326-8.055466-6.249331-0.005117-0.005117-0.005117-0.005117-0.005117-0.005117L254.825756 517.519714c-15.796778-15.808034-15.796778-41.432645 0-57.245795 15.808034-15.808034 41.437761-15.808034 57.245795 0l137.90279 137.90279 260.611529-260.611529c15.802918-15.802918 41.437761-15.802918 57.240679 0C783.628444 353.378329 783.628444 379.001917 767.82041 394.804834L767.82041 394.804834zM767.82041 394.804834" fill="#E2E2E2"></path></svg>'},t.default=U}).call(t,n(2),n(13),n(7))},333:function(e,t,n){(function(e){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),c=n(4),d=n(28),p=r(d),u=n(6),m=r(u),f=n(3),h=n(200),b=r(h),g=n(7),v=a(g),k=n(32),w=a(k),y=n(14),x=a(y),E=n(10),C=a(E),_=n(31),A=a(_),N=function(t){function n(){var e,t,a,r;o(this,n);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return t=a=i(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={secret:void 0,linnk:void 0,instapaper:void 0,jianguo:void 0,weizhi:void 0,weizhi_folder:void 0,notion:void 0,youdao:void 0,github:void 0,joplin:void 0,hypothes:void 0,flomo:void 0,focusnote:void 0},r=t,i(a,r)}return s(n,t),l(n,[{key:"onChange",value:function(e,t,n){var a=this,r=void 0,o=p.dropbox,i=p.pocket,s=p.instapaper,l=p.linnk,d=p.evernote,u=p.onenote,h=p.gdrive,g=p.jianguo,k=p.yuque,w=p.notion,y=p.hypothes,x=p.youdao,E=p.weizhi,C=p.github,_=p.joplin,A=p.flomo,N=p.focusnote,S=function(e,t){Object.keys(c.storage.secret[e]).forEach(function(t){return c.storage.secret[e][t]=""}),c.storage.Safe(function(){(new v.default).Render("已取消对 "+t+' 的授权，也请解除简悦的访问权限， <a target="_blank" href="'+p.Unlink(e)+'">点击这里</a>'),a.setState({secret:c.storage.secret})},c.storage.secret)},j=function(e,t,n){r&&r.complete(),Object.keys(n).forEach(function(t){return c.storage.secret[e][t]=n[t]}),"jianguo"==e&&(c.storage.secret[e].access_token={username:n.username,password:n.password}),c.storage.Safe(function(){(new v.default).Render("已成功授权 "+t+" 。"),"linnk"==e&&a.setState({secret:c.storage.secret,linnk:!1}),"instapaper"==e&&a.setState({secret:c.storage.secret,instapaper:!1}),"jianguo"==e&&a.setState({secret:c.storage.secret,jianguo:!1}),"weizhi"==e&&a.setState({secret:c.storage.secret,weizhi:!1}),"notion"==e&&a.setState({secret:c.storage.secret,notion:w.blocks}),"hypothes"==e&&a.setState({secret:c.storage.secret,hypothes:y.groups}),"github"==e&&a.setState({secret:c.storage.secret,github:!1}),"joplin"==e&&a.setState({secret:c.storage.secret,joplin:!1}),"youdao"==e&&a.setState({secret:c.storage.secret,youdao:x.folders}),"flomo"==e&&a.setState({secret:c.storage.secret,flomo:!1}),"focusnote"==e&&a.setState({secret:c.storage.secret,focusnote:!1}),location.hash.startsWith("#connect?auth=")&&((new v.default).Render("3 秒钟将会关闭此页面..."),setTimeout(function(){f.browser.runtime.sendMessage(m.Add(m.MESSAGE_ACTION.auth_success,{url:location.href,type:"auth",name:e}))},3e3))},c.storage.secret)},O=function(t,n,o){r&&r.complete(),"youdao"==n||"notion"==n?(new v.default).Render(2,"获取 "+o+" 授权失败，"+t):"hypothes"==n&&(new v.default).Render(2,'请先在简悦 · 同步助手中开启此功能，详细 <a target="_blank" href="http://ksria.com/simpread/docs/#/Sync?id=Hypothesis">请看这里</a>'),(new v.default).Render(2,"获取 "+o+" 授权失败，请重新获取。"),c.storage.secret[e].access_token="",a.setState({secret:c.storage.secret})};if("linnk"==e&&!n&&!c.storage.secret.linnk.access_token)return void this.setState({linnk:!this.state.linnk});if("instapaper"==e&&!n&&!c.storage.secret.instapaper.access_token)return void this.setState({instapaper:!this.state.instapaper});if("jianguo"==e&&!n&&!c.storage.secret.jianguo.username)return void this.setState({jianguo:!this.state.jianguo});if("weizhi"==e&&!n&&!c.storage.secret.weizhi.access_token)return void this.setState({weizhi:!this.state.weizhi});if("github"==e&&!n&&!c.storage.secret.github.access_token)return void this.setState({github:!this.state.github});if("joplin"==e&&!n&&!c.storage.secret.joplin.access_token)return void this.setState({joplin:!this.state.joplin});if("hypothes"==e&&!n&&!c.storage.secret.hypothes.access_token)return void this.setState({hypothes:!this.state.hypothes});if("flomo"==e&&!n&&!c.storage.secret.flomo.access_token)return void this.setState({flomo:!this.state.flomo});if("focusnote"==e&&!n&&!c.storage.secret.focusnote.access_token)return void this.setState({focusnote:!this.state.focusnote});if(!t)return"pocket"==e&&$(this.refs.pocket_tags).velocity(t?"slideDown":"slideUp"),"github"==e&&$(this.refs.github).velocity(t?"slideDown":"slideUp"),"joplin"==e&&$(this.refs.joplin).velocity(t?"slideDown":"slideUp"),"linnk"==e&&(this.props.linnk.username="",this.props.linnk.password=""),"instapaper"==e&&(this.props.instapaper.username="",this.props.instapaper.password=""),"jianguo"==e&&(this.props.jianguo.username="",this.props.jianguo.password=""),"weizhi"==e&&(this.props.weizhi.kbServer="",this.props.weizhi.kbGuid="",
this.props.weizhi.folder="",this.props.weizhi.access_token=""),"github"==e&&(this.props.github.repo="",this.props.github.path="",this.props.github.access_token=""),"joplin"==e&&(this.props.joplin.folder_id="",this.props.joplin.access_token=""),"hypothes"==e&&(this.props.joplin.access_token="",this.props.joplin.group_id=""),"youdao"==e&&b.Remove(x.permissions,function(e){return(new v.default).Render("已取消 cookies 权限。")}),"flomo"==e&&(this.props.flomo.access_token=""),"focusnote"==e&&(this.props.focusnote.access_token=""),void S(e,p.Name(e));switch((new v.default).Render({content:"授权中，请勿关闭此页面，授权成功后会有提示。",delay:1e4}),e){case"dropbox":o.New().Auth(),o.dtd.done(function(){return j(o.id,o.name,{access_token:o.access_token})}).fail(function(e){return O(e,o.id,o.name)});break;case"pocket":r=(new v.default).Render({content:"开始对 "+i.name+" 进行授权，请稍等...",state:"loading"}),i.Request(function(e,t){t?O(t,i.id,i.name):(i.New().Login(e.code),i.dtd.done(function(){i.Auth(function(e,t){t?O(t,i.id,i.name):j(i.id,i.name,{access_token:i.access_token})})}).fail(function(e){return O(e,i.id,i.name)}))});break;case"instapaper":s.Login(this.props.instapaper.username,this.props.instapaper.password,function(e,t){t?O(t,s.id,s.name):j(s.id,s.name,{access_token:s.access_token,token_secret:s.token_secret})});break;case"linnk":l.Login(this.props.linnk.username,this.props.linnk.password,function(e,t){if(t)O(t,l.id,l.name);else if(200==e.code)l.Groups(function(e){if(200==e.code)l.GetGroup("",e.data),j(l.id,l.name,{access_token:l.access_token,group_name:l.group_name});else{var t=l.error_code[e.code];(new v.default).Render(2,t?t:"获取 "+l.name+" 授权失败，请重新获取。")}});else{var n=l.error_code[e.code];(new v.default).Render(2,n?n:"获取 "+l.name+" 授权失败，请重新获取。")}});break;case"yinxiang":case"evernote":d.env=e,d.sandbox=!1,r=(new v.default).Render({content:"开始对 "+d.name+" 进行授权，请稍等...",state:"loading"}),d.New().RequestToken(function(e,t){t?O(t,d.id,d.name):d.dtd.done(function(){d.Auth(function(e,t){t?O(t,d.id,d.name):j(d.id,d.name,{access_token:d.access_token})})}).fail(function(e){return O(e,d.id,d.name)})});break;case"onenote":u.New().Login(),u.dtd.done(function(){u.Auth(function(e,t){t?O(t,u.id,u.name):j(u.id,u.name,{access_token:u.access_token,refresh_token:u.refresh_token})})}).fail(function(e){return O(e,u.id,u.name)});break;case"gdrive":h.New().Login(),h.dtd.done(function(){h.Auth(function(e,t){t?O(t,h.id,h.name):j(h.id,h.name,{access_token:h.access_token,folder_id:h.folder_id})})}).fail(function(e){return O(e,h.id,h.name)});break;case"yuque":k.New().Login(),k.dtd.done(function(){k.Auth(function(e,t){t?O(t,k.id,k.name):k.GetUser(function(e,t){t?O(t,k.id,k.name):k.GetRepos(function(e,t){t?O(t,k.id,k.name):""!=k.repos_id?j(k.id,k.name,{access_token:k.access_token,repos_id:k.repos_id}):k.CreateRepo(function(e,t){t?O(t,k.id,k.name):j(k.id,k.name,{access_token:k.access_token,repos_id:k.repos_id})})})})})}).fail(function(e){return O(e,k.id,k.name)});break;case"notion":w.Auth(function(e,t,n){t?O(t,w.id,w.name):(""!=n&&(new v.default).Render({type:2,content:'请注意：授权时出现了问题导致 <b>仅成功授权了</b> 您的第一个 Notion Page 虽然不影响导出服务，但建议提 <a target="_blank" href="https://github.com/Kenshin/simpread/issues/809"><b>Issues</b></a>',state:"holdon"}),j(w.id,w.name,{access_token:w.access_token,folder_id:w.folder_id,save_image:w.save_image,type:w.type}))});break;case"youdao":b.Get(x.permissions,function(e){return e?void setTimeout(function(){x.Auth(function(e,t){t?O(t,x.id,x.name):j(x.id,x.name,{access_token:x.access_token,folder_id:x.folder_id})})},500):((new v.default).Render(2,"此功能需要申请 cookies 权限后才能使用，授权成功后会自动取消。"),void a.setState({secret:c.storage.secret}))});break;case"jianguo":g.Auth(this.props.jianguo.username,this.props.jianguo.password,function(e){e&&401==e.status?O("授权错误，请重新授权。",g.id,g.name):j("jianguo","坚果云",{username:a.props.jianguo.username,password:a.props.jianguo.password})});break;case"weizhi":location.hash.startsWith("#connect?auth=weizhi")&&(this.props.weizhi.username=c.storage.secret.weizhi.username,this.props.weizhi.password=c.storage.secret.weizhi.password,c.storage.secret.weizhi.host&&(this.props.weizhi.host=c.storage.secret.weizhi.host)),E.Auth(this.props.weizhi.host||E.host,this.props.weizhi.username,this.props.weizhi.password,function(e,t){if(401==t)O("授权错误，请重新授权。",E.id,E.name);else if(e){E.username=a.props.weizhi.username,E.password=a.props.weizhi.password,E.kbServer=e.kbServer,E.kbGuid=e.kbGuid,E.access_token=e.token;var n={username:E.username,password:E.password,kbServer:E.kbServer,kbGuid:E.kbGuid,access_token:E.access_token};a.props.weizhi.host&&(n.host=a.props.weizhi.host),j("weizhi","为知笔记",n)}else O("授权错误，请重新授权。",E.id,E.name)});break;case"github":C.access_token=this.props.github.access_token||this.state.secret.github.access_token,C.repo=this.props.github.repo||this.state.secret.github.repo,C.path=this.props.github.path||this.state.secret.github.path||C.path,C.Auth(function(e,t){t?O("授权错误，请重新授权。",C.id,C.name):j("github","Github",{access_token:C.access_token,repo:C.repo,path:C.path})});break;case"joplin":_.access_token=this.props.joplin.access_token||this.state.secret.joplin.access_token,_.folder_id=this.props.joplin.folder_id||this.state.secret.joplin.folder_id||_.folder_id,_.Auth(function(e,t){t?O("授权错误，请重新授权。",_.id,_.name):j("joplin","Joplin",{access_token:_.access_token,folder_id:_.folder_id})});break;case"hypothes":y.port=c.storage.option.remote.port,y.access_token=this.props.hypothes.access_token||this.state.secret.hypothes.access_token,y.Auth(function(e,t){t?O(t,y.id,y.name):j(y.id,y.name,{access_token:y.access_token})});break;case"flomo":setTimeout(function(){j(A.id,A.name,{access_token:a.props.flomo.access_token})},1e3);break;case"focusnote":setTimeout(function(){j(N.id,N.name,{access_token:a.props.focusnote.access_token})},1e3)}}},{key:"save",value:function(e,t){var n=this;if("pocket"==e&&(c.storage.secret.pocket.tags=t.trim()),"linnk"==e&&(c.storage.secret.linnk.group_name=t.trim()),"youdao"==e&&(c.storage.secret.youdao.folder_id=t.trim()),"notion_save_image"==e&&(c.storage.secret.notion.save_image=t),"notion"==e){var a=this.state.notion.filter(function(e){return e.value==t.trim()})[0];c.storage.secret.notion.folder_id=t.trim(),c.storage.secret.notion.type=a.type,a.schema&&(c.storage.secret.notion.schema=a.schema),"page"==a.type&&delete c.storage.secret.notion.schema}"hypothes"==e&&(c.storage.secret.hypothes.group_id=t.trim()),"weizhi"==e&&(c.storage.secret.weizhi.folder=t.trim()),c.storage.Safe(function(){return n.setState({secret:c.storage.secret})},c.storage.secret)}},{key:"linnkOnChange",value:function(e,t){this.props.linnk[e]=t}},{key:"instapaperOnChange",value:function(e,t){this.props.instapaper[e]=t}},{key:"jianguoOnChange",value:function(e,t){this.props.jianguo[e]=t}},{key:"weizhiOnChange",value:function(e,t){this.props.weizhi[e]=t}},{key:"weizhiFolderChange",value:function(){var e=this,t=(new v.default).Render({state:"loading",content:"正在获取 为知笔记 文件夹 ，请稍等"});p.weizhi.kbServer=c.storage.secret.weizhi.kbServer,p.weizhi.kbGuid=c.storage.secret.weizhi.kbGuid,p.weizhi.access_token=c.storage.secret.weizhi.access_token,p.weizhi.Folder(function(n,a){t.complete(),a?(new v.default).Render({type:2,content:"获取为知笔记文件夹失败，请稍后再试。"}):(p.weizhi.folders=[],n.forEach(function(e){return p.weizhi.folders.push({name:e,value:e})}),e.setState({secret:c.storage.secret,weizhi_folder:p.weizhi.folders}))})}},{key:"githubOnChange",value:function(e,t){"access_token"!=e&&t.endsWith("/")&&(t=t.replace(/\/$/,"")),this.props.github[e]=t}},{key:"joplinOnChange",value:function(e,t){this.props.joplin[e]=t}},{key:"hypothesOnChange",value:function(e,t){this.props.hypothes[e]=t}},{key:"webdavOnChange",value:function(){var e=this;this.state.secret.webdav=event.target.value.split("\n"),c.storage.Safe(function(){return e.setState({secret:c.storage.secret})},c.storage.secret)}},{key:"notionChange",value:function(){var e=this,t=(new v.default).Render({state:"loading",content:"正在获取 Notion Page ，请稍等"});p.notion.Auth(function(n,a,r){t.complete(),a?(new v.default).Render({type:2,content:'Notion.so 并未提供 API 所以会出现 <b>获取失败的情况</b>，如发生此问题，请提 <a target="_blank" href="https://github.com/Kenshin/simpread/issues/809">Issues</a>',state:"holdon"}):(""!=r&&(new v.default).Render({type:2,content:'请注意：获取时出现了问题导致 <b>仅成功获取了</b> 您的第一个 Notion Page 虽然不影响导出服务，但建议提 <a target="_blank" href="https://github.com/Kenshin/simpread/issues/809"><b>Issues</b></a>',state:"holdon"}),""==r&&(new v.default).Render(1,"获取成功，请选择导出的 Notion Page"),e.setState({secret:c.storage.secret,notion:p.notion.blocks}))})}},{key:"youdaoChange",value:function(){var e=this;b.Get(p.youdao.permissions,function(t){return t?void setTimeout(function(){p.youdao.Auth(function(t,n){t?e.setState({secret:c.storage.secret,youdao:p.youdao.folders}):(new v.default).Render(2,"重新获取失败，"+n)})},500):((new v.default).Render(2,"此功能需要申请 cookies 权限后才能使用，授权成功后会自动取消。"),void e.setState({secret:c.storage.secret}))})}},{key:"hypothesChange",value:function(){var e=this,t=(new v.default).Render({state:"loading",content:"正在获取 Hypothes.is Groups ，请稍等"});p.hypothes.port=c.storage.option.remote.port,p.hypothes.access_token=c.storage.secret.hypothes.access_token,p.hypothes.group_id=c.storage.secret.hypothes.group_id,p.hypothes.Groups(function(n,a){t.complete(),a?(new v.default).Render(2,"获取失败，"+a):e.setState({secret:c.storage.secret,hypothes:p.hypothes.groups})})}},{key:"flomoOnChange",value:function(e,t){this.props.flomo[e]=t}},{key:"focusnoteOnChange",value:function(e,t){this.props.focusnote[e]=t}},{key:"webdavAuth",value:function(){this.state.secret.webdav.forEach(function(e,t){try{if(e=JSON.parse(e),""!=Object.keys(e).join("").replace(/url|name|password|user|format/gi,""))throw"error";p.webdav.Auth(e.url,e.user,e.password,function(t){!t||201!=t.status&&405!=t.status?(new v.default).Render(2,e.name+" 授权失败，请确认用户名和密码。"):(new v.default).Render(e.name+" 验证成功。")})}catch(e){(new v.default).Render(2,"第 "+(t+1)+" 条数据格式错误，请重新输入。")}})}},{key:"componentWillReceiveProps",value:function(e){this.setState({secret:c.storage.secret})}},{key:"componentDidMount",value:function(){var e=this;c.storage.Safe(function(){e.setState({secret:c.storage.secret}),location.hash.startsWith("#connect?auth=")&&e.onChange(location.hash.replace("#connect?auth=",""),!0)})}},{key:"render",value:function(){var t=this,n=void 0;return this.state.secret&&(n=e.createElement("div",null,e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.dropbox.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.dropbox.access_token?"已授权 Dropbox，是否取消授权？":"是否连接并授权 Dropbox ？",onChange:function(e){return t.onChange("dropbox",e)}}),e.createElement("div",{className:"dividers"}),e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.pocket.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.pocket.access_token?"已授权 Pocket，是否取消授权？":"是否连接并授权 Pocket ？",onChange:function(e){return t.onChange("pocket",e)}}),this.state.secret.pocket.access_token&&e.createElement("div",{ref:"pocket_tags",style:{width:"100%"}},e.createElement(x.default,{placeholder:"请填入 Pocket 标签，默认为 simpread 每个标签用小写, 分割。",value:this.state.secret.pocket.tags,onChange:function(e){return t.save("pocket",e.target.value)}})),e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.instapaper.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.instapaper.access_token?"已授权 Instapaper，是否取消授权？":"是否连接并授权 Instapaper ？",onChange:function(e){return t.onChange("instapaper",e)}}),this.state.instapaper&&e.createElement("div",{ref:"instapaper"},e.createElement("div",{style:{display:"flex","flex-direction":"row"}},e.createElement(x.default,{placeholder:"请填入 Instapaper 用户名，简悦不会记录你的用户名。",onChange:function(e){return t.instapaperOnChange("username",e.target.value)}}),e.createElement(x.default,{password:!0,placeholder:"请填入 Instapaper 密码，简悦不会记录你的密码。",onChange:function(e){return t.instapaperOnChange("password",e.target.value)}})),e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"登录 Instapaper 并授权",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.onChange("instapaper",e,"login")}})),e.createElement("div",{className:"dividers"}),e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.yinxiang.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.yinxiang.access_token?"已授权 印象笔记，是否取消授权？":"是否连接并授权 印象笔记 ？",onChange:function(e){return t.onChange("yinxiang",e)}}),e.createElement("div",{className:"dividers"}),e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.evernote.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.evernote.access_token?"已授权 Evernote，是否取消授权？":"是否连接并授权 Evernote ？",onChange:function(e){return t.onChange("evernote",e)}}),e.createElement("div",{className:"dividers"}),e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.onenote.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.onenote.access_token?"已授权 Onenote，是否取消授权？":"是否连接并授权 Onenote ？",onChange:function(e){return t.onChange("onenote",e)}}),e.createElement("div",{className:"dividers"}),e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.gdrive.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.gdrive.access_token?"已授权 Google 云端硬盘，是否取消授权？":"是否连接并授权 Google 云端硬盘 ？",onChange:function(e){return t.onChange("gdrive",e)}}),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-version":"1.1.3","data-hits":"jianguo"},e.createElement(w.default,{width:"100%",checked:!(!this.state.secret.jianguo||""==this.state.secret.jianguo.username||!this.state.secret.jianguo.password),thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.jianguo&&""!=this.state.secret.jianguo.username?"已授权 坚果云，是否取消授权？":"是否连接并授权 坚果云 ？",onChange:function(e){return t.onChange("jianguo",e)}})),this.state.jianguo&&e.createElement("div",{ref:"jianguo"},e.createElement("div",{style:{display:"flex","flex-direction":"row"}},e.createElement(x.default,{placeholder:"请填入 坚果云的 WebDAV 用户名，简悦不会记录你的用户名。",onChange:function(e){return t.jianguoOnChange("username",e.target.value)}}),e.createElement(x.default,{password:!0,placeholder:"请填入 坚果云的 WebDAV 密码，简悦不会记录你的密码。",onChange:function(e){return t.jianguoOnChange("password",e.target.value)}})),e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"绑定 坚果云 的信息",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.onChange("jianguo",e,"login")}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-version":"1.1.3","data-hits":"yuque"},e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.yuque.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.yuque.access_token?"已授权 语雀，是否取消授权？":"是否连接并授权 语雀 ？",onChange:function(e){return t.onChange("yuque",e)}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-version":"1.1.4","data-hits":"notion"},e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.notion.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.notion.access_token?"已授权 Notion，是否取消授权？":"是否连接并授权 Notion ？",onChange:function(e){return t.onChange("notion",e)}}),this.state.secret.notion.access_token&&e.createElement("div",{style:{display:"flex","flex-direction":"column","justify-content":"center"}},this.state.notion?e.createElement(A.default,{name:"请选择保存的位置，默认为第一个",items:this.state.notion,width:"100%",onChange:function(e,n){return t.save("notion",e)}}):e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"重新获取 Notion Page",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.notionChange()}}),e.createElement(w.default,{width:"100%",checked:this.state.secret.notion.save_image,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:"是否使用 Notion.so 作为图床？",desc:"由于 Notion 并未公开 API 所以此方式较慢。",onChange:function(e){return t.save("notion_save_image",e)}}),e.createElement("span",{className:"sublabel",style:{"margin-top":"8px","text-align":"left"}},"注意：由于 Notion.so 暂未提供 API 所以会出现 ",e.createElement("b",null,"授权")," 或 ",e.createElement("b",null,"获取 Notion Page")," 失败的情况，如遇到此情况，请提 ",e.createElement("a",{target:"_blank",href:"https://github.com/Kenshin/simpread/issues/809"},e.createElement("b",null,"Issues"))))),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-version":"1.1.4","data-hits":"youdao"},e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.youdao.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.youdao.access_token?"已授权 有道云笔记":"是否连接并授权 有道云笔记 ？",onChange:function(e){return t.onChange("youdao",e)}}),this.state.secret.youdao.access_token&&e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center"}},this.state.youdao?e.createElement(A.default,{name:"请选择保存的位置，默认为第一个",items:this.state.youdao,width:"100%",onChange:function(e,n){return t.save("youdao",e)}}):e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"重新获取 有道云笔记 的文件夹",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.youdaoChange()}}))),e.createElement("div",{className:"version-tips","data-version":"1.1.4","data-hits":"weizhi"},e.createElement(w.default,{width:"100%",checked:!(!this.state.secret.weizhi||!this.state.secret.weizhi.access_token),thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.weizhi&&""!=this.state.secret.weizhi.username?"已授权 为知笔记，是否取消授权？":"是否连接并授权 为知笔记 ？",onChange:function(e){return t.onChange("weizhi",e)}})),this.state.weizhi&&e.createElement("div",null,e.createElement(x.default,{placeholder:"请填入 为知笔记 私有部署地址，如使用官方方式，请误更改这里。",onChange:function(e){return t.weizhiOnChange("host",e.target.value)}}),e.createElement("div",{ref:"weizhi"},e.createElement("div",{style:{display:"flex","flex-direction":"row"}},e.createElement(x.default,{placeholder:"请填入 为知笔记 的登录邮箱，简悦不会记录你的邮箱。",onChange:function(e){return t.weizhiOnChange("username",e.target.value)}}),e.createElement(x.default,{password:!0,placeholder:"请填入 为知笔记 的密码，简悦不会记录你的密码。",onChange:function(e){return t.weizhiOnChange("password",e.target.value)}})),e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"绑定 为知笔记 的信息",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.onChange("weizhi",e,"login")}}))),this.state.secret.weizhi.access_token&&e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center"}},this.state.weizhi_folder?e.createElement(A.default,{name:"请选择保存的位置",items:this.state.weizhi_folder,width:"100%",onChange:function(e,n){return t.save("weizhi",e)}}):e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"重新获取 为知笔记 文件夹",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.weizhiFolderChange()}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"github"},e.createElement(w.default,{width:"100%",checked:!(!this.state.secret.github||!this.state.secret.github.access_token),thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.github&&""!=this.state.secret.github.access_token?"已授权 Github ，是否取消授权？":"是否连接并授权 Github ？",onChange:function(e){return t.onChange("github",e)}}),(this.state.github||""!=this.state.secret.github.access_token)&&e.createElement("div",{ref:"github"},e.createElement("div",{style:{display:"flex","flex-direction":"column"}},e.createElement("div",{style:{display:"flex","flex-direction":"row","align-items":"center"}},e.createElement(x.default,{placeholder:"请填入 Github Token",value:this.state.secret.github.access_token||"",onChange:function(e){return t.githubOnChange("access_token",e.target.value)}}),e.createElement("a",{style:{width:"140px"},target:"_blank",href:"http://ksria.com/simpread/docs/#/Github"},"如何获取，请看这里")),e.createElement("div",{style:{display:"flex","flex-direction":"row"}},e.createElement(x.default,{placeholder:"请填入 Github :owner/:repo 地址，例如 kenshin/simpread",value:this.state.secret.github.repo||"",onChange:function(e){return t.githubOnChange("repo",e.target.value)}})),e.createElement("div",{style:{display:"flex","flex-direction":"row"}},e.createElement(x.default,{placeholder:"请填入 Github 路径，例如 aa/bb 默认为 md",value:this.state.secret.github.path||"",onChange:function(e){return t.githubOnChange("path",e.target.value)}}))),e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"验证并绑定 Github 的信息",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.onChange("github",e,"auth")}}))),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"joplin"},e.createElement(w.default,{width:"100%",checked:!(!this.state.secret.joplin||!this.state.secret.joplin.access_token),thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.joplin&&""!=this.state.secret.joplin.access_token?"已授权 Joplin ，是否取消授权？":"是否连接并授权 Joplin ？",onChange:function(e){return t.onChange("joplin",e)}}),(this.state.joplin||""!=this.state.secret.joplin.access_token)&&e.createElement("div",{ref:"joplin"},e.createElement("div",{style:{display:"flex","flex-direction":"column"}},e.createElement("div",{style:{display:"flex","flex-direction":"row","align-items":"center"}},e.createElement(x.default,{placeholder:"请填入 Joplin Token",value:this.state.secret.joplin.access_token||"",onChange:function(e){return t.joplinOnChange("access_token",e.target.value)}}),e.createElement("a",{style:{width:"140px"},target:"_blank",href:"http://ksria.com/simpread/docs/#/Joplin"},"如何获取，请看这里")),e.createElement("span",{className:"sublabel",style:{margin:"5px 0 10px","text-align":"left"}},"备注：简悦会默认保存到 SimpRead 文件夹，授权之后可在 Joplin 更改其名称，初次授权（或重新授权）时 ",e.createElement("b",null,"请务必修改为 SimpRead"))),e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"验证并绑定 Joplin 的信息",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.onChange("joplin",e,"auth")}}))),e.createElement("div",{className:"dividers"}),e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.flomo.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.flomo.access_token?"已授权 flomo，是否取消授权？":"是否连接并授权 flomo ？",onChange:function(e){return t.onChange("flomo",e)}}),this.state.flomo&&e.createElement("div",{ref:"flomo"},e.createElement("div",{style:{display:"flex","flex-direction":"column"}},e.createElement(x.default,{placeholder:"请填入 flomo token 例如 iwh/****/****/",onChange:function(e){return t.flomoOnChange("access_token",e.target.value)}}),e.createElement("span",{className:"sublabel",style:{margin:"5px 0 5px","text-align":"left"}},"1. 浮墨笔记 flomo 是一个灵感收集类的笔记工具，并不是适合保存全文，所以当全文导入时，仅保留 ",e.createElement("b",null,"标题")," 与 ",e.createElement("b",null,"原链接"),"。"),e.createElement("span",{className:"sublabel",style:{margin:"0 0 5px","text-align":"left"}},"2. 浮墨笔记 flomo API ",e.createElement("a",{target:"_blank",href:"https://flomoapp.com/i"},"如何获取，请看这里"),"，请填写 ",e.createElement("b",null,"https://flomoapp.com/")," 之后的内容，留意开头不要加 ",e.createElement("code",null,"/"),"。")),e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"验证并绑定 flomo 的信息",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.onChange("flomo",e,"login")}})),e.createElement("div",{className:"dividers"}),e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.focusnote.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.focusnote.access_token?"已授权 专注笔记，是否取消授权？":"是否连接并授权 专注笔记 ？",onChange:function(e){return t.onChange("focusnote",e)}}),this.state.focusnote&&e.createElement("div",{ref:"focusnote",style:{display:"flex","flex-direction":"column"}},e.createElement("div",{style:{display:"flex","flex-direction":"row","align-items":"center"}},e.createElement(x.default,{placeholder:"请填入专注笔记 Token",onChange:function(e){return t.focusnoteOnChange("access_token",e.target.value)}}),e.createElement("a",{style:{width:"140px"},target:"_blank",href:"http://ksria.com/simpread/docs/#/专注笔记"},"如何获取，请看这里")),e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"验证并绑定 专注笔记 的信息",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.onChange("focusnote",e,"login")}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-version":"1.1.4","data-hits":"webdav"},e.createElement("div",{className:"label",style:{"margin-bottom":" -15px"}},"WebDAV"),e.createElement("div",{className:"sublabel"},"简悦支持任意 WebDAV 的服务，包括：Box · TeraCLOUD 等"),e.createElement(x.default,{multi:!0,rows:8,placeholder:'每行一组，格式为：{ "name": "网盘的名称", "user": "用户名", "password": "密码", "url": "webdav 地址" }',value:(this.state.secret.webdav||[]).join("\n"),onChange:function(e){return t.webdavOnChange(e)}}),e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"验证上述 WebDAV 服务",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.webdavAuth()}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{style:{position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("div",{className:"label",style:{"margin-bottom":" -15px"}},"同步服务"),e.createElement("div",{className:"sublabel"},"1. 以下功能均为 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/服务?id=同步服务",target:"_blank"},e.createElement("b",null,"同步服务")),"，",e.createElement("b",null,"不会出现在")," ",e.createElement("b",null,"控制栏 → 动作面板")," 中。"),e.createElement("div",{className:"sublabel"},"2. 同步服务专门用于 ",e.createElement("b",null,"标注")," 的同步功能，包括： ",e.createElement("b",null,"新建 / 更新 / 删除")," 标注时会触发它们。"),e.createElement("div",{className:"sublabel"},"3. 为 ",e.createElement("a",{target:"_blank",href:"https://simpread.pro/price.html"},e.createElement("b",null,"简悦 · 高级账户")," 功能"),"，且需要在 ",e.createElement("b",null,"简悦 · 同步助手")," ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=自动化",target:"_blank"},"配置"),"。"),e.createElement("div",{className:"sublabel"},"4. 一般与 ",e.createElement("a",{style:{cursor:"pointer"},onClick:function(){$('.label[data-name="自动化"]')[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},"自动化功能")," 搭配，如：",e.createElement("b",null,"实时同步简悦的标注")," 到 ",e.createElement("a",{href:"https://readwise.io/i/kenshin",target:"_blank"},"Readwise")," 或 ",e.createElement("a",{style:{width:"140px"},target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=Hypothesis"},"Hypothes"),"。"),e.createElement("div",{className:"version-tips","data-version":"2。1.0","data-hits":"hypothes"},e.createElement(w.default,{width:"100%",checked:""!=this.state.secret.hypothes.access_token,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:this.state.secret.hypothes.access_token?"已授权 Hypothes.is，是否取消授权？":"是否连接并授权 Hypothes.is ？",onChange:function(e){return t.onChange("hypothes",e)}}),(this.state.hypothes||""!=this.state.secret.hypothes.access_token)&&e.createElement("div",{ref:"hypothes"},e.createElement("div",{style:{display:"flex","flex-direction":"column"}},e.createElement("div",{style:{display:"flex","flex-direction":"row","align-items":"center"}},e.createElement(x.default,{placeholder:"请填入 Hypothes.is Token",value:this.state.secret.hypothes.access_token||"",onChange:function(e){return t.hypothesOnChange("access_token",e.target.value)}}),e.createElement("a",{style:{width:"140px"},target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=Hypothesis"},"如何获取，请看这里")))),this.state.secret.hypothes.access_token&&e.createElement("div",{style:{display:"flex","flex-direction":"column","justify-content":"center"}},this.state.hypothes?e.createElement(A.default,{name:"请选择保存的 Group",items:this.state.hypothes,width:"100%",onChange:function(e,n){return t.save("hypothes",e)}}):e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"重新获取 Hypothes.is Groups",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.hypothesChange()}}))),this.state.hypothes&&e.createElement(C.default,{type:"flat",width:"100%",style:{margin:"0"},text:"验证并绑定 Hypothes.is 的信息",color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",onClick:function(e){return t.onChange("hypothes",e,"auth")}})))),e.createElement("div",null,n)}}]),n}(e.Component);N.defaultProps={lock:!0,lock_icon:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="15"><path d="M284.444672 455.110656v-113.77664c0-125.67552 101.879808-227.556352 227.555328-227.556352s227.555328 101.879808 227.555328 227.555328v113.777664h71.11168c23.564288 0 42.665984 19.10272 42.665984 42.667008v369.777664c0 23.564288-19.101696 42.667008-42.665984 42.667008H213.332992c-23.564288 0-42.665984-19.10272-42.665984-42.667008v-369.77664c0-23.565312 19.101696-42.668032 42.665984-42.668032h71.11168z m85.332992 0H654.22336v-113.77664c0-78.547968-63.675392-142.22336-142.222336-142.22336-78.546944 0-142.222336 63.675392-142.222336 142.22336v113.77664z" fill="#f55246"></path></svg>',linnk:{username:"",password:""},instapaper:{username:"",password:""},jianguo:{username:"",password:""},weizhi:{kbServer:"",kbGuid:"",folder:"",access_token:""},github:{access_token:"",repo:"",path:""},joplin:{access_token:"",folder_id:""},hypothes:{access_token:"",group_id:""},flomo:{access_token:""},focusnote:{access_token:""}},t.default=N}).call(t,n(2))},334:function(e,t,n){(function(e,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),d=n(31),p=o(d),u=n(10),m=o(u),f=n(14),h=o(f),b=n(30),g=r(b),v=n(42),k=r(v),w=n(17),y=r(w),x=n(64),E=r(x),C=n(4),_="simpread-automated-root",A="."+_,N=function(e){var t=[{name:"稍后读",
value:"unreader"},{name:"标注",value:"annote"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},S=function(e){var t=E.getAllService(),n=!1;return t=t.filter(function(t){if("unreader"==e){if(!["sync"].includes(t.type))return t}else if("sync"==t.type&&(n=!0),["sync","download","custom"].includes(t.type))return t}),"annote"!=e||n?"unreader"==e&&(t=t.filter(function(e){return"automated"!=e.type})):t=E.addSyncService(),t},j=function(e){var t=[{name:"自动",value:"auto"},{name:"手动",value:"manual"},{name:"暂停",value:"disable"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},O=function(t){function n(){var e,t,a,r;i(this,n);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return t=a=s(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={task:a.props.task,urservice:S("unreader"),anservice:S("annote")},r=t,s(a,r)}return l(n,t),c(n,[{key:"onNameChange",value:function(e,t){this.state.task[t]=e}},{key:"onEnableChange",value:function(e,t){this.state.task[t]=e}},{key:"onEditChange",value:function(e,t){this.state.task[t]=e,this.setState({task:this.state.task})}},{key:"onActionChange",value:function(e,t){this.state.task.action.forEach(function(n){n.id==t&&(n.value=e),n.id==t&&(n.disable=!1)}),this.setState({task:this.state.task})}},{key:"onRemoveAction",value:function(e,t){if(1==this.state.task.action.length)return void(new a).Render(2,"必须要保留一个导出服务。");var n=this.state.task.action.findIndex(function(e){return e.id==t.id});n!=-1&&this.state.task.action.splice(n,1),this.setState({task:this.state.task})}},{key:"onNewAction",value:function(){this.state.task.action.push({id:+new Date,value:"html"}),this.setState({task:this.state.task})}},{key:"onChange",value:function(e,t){var n=this;this.state.task[t]=e,"annote"==e?this.state.task.action.forEach(function(e){var t=n.state.anservice.findIndex(function(t){return t.value==e.value});e.disable=t==-1}):"unreader"==e&&this.state.task.action.forEach(function(e){var t=n.state.urservice.findIndex(function(t){return t.value==e.value});e.disable=t==-1}),this.setState({task:this.state.task})}},{key:"render",value:function(){var t=this,n=this.state.task.action.map(function(n,a){return e.createElement("div",{className:"group"},e.createElement("span",{className:"order","data-disable":n.disable,"data-balloon-pos":"right","aria-label":1==n.disable?"当前触发器不支持此服务":"自动化执行的顺序"},1==n.disable?"!":a+1),e.createElement("div",{className:"dropdown"},e.createElement("span",{className:"cover"},E.findService(n.value).name),e.createElement(p.default,{name:E.findService(n.value).name,width:"100%",items:"unreader"==t.state.task.target?t.state.urservice:t.state.anservice,onChange:function(e,a){return t.onActionChange(e,n.id)}})),e.createElement("span",{className:"tooltip","data-balloon-pos":"up","aria-label":"删除"},e.createElement("span",{className:"md-waves-effect icon remove",onClick:function(e){return t.onRemoveAction(e,n)}},e.createElement("i",{className:"fas fa-times"}))))});return e.createElement("div",null,e.createElement("sr-opt-gp",null,e.createElement("div",{className:"preview"},e.createElement("span",{className:"icon",style:{color:this.state.task.color,backgroundColor:this.state.task.bgColor},dangerouslySetInnerHTML:{__html:this.state.task.icon}})),e.createElement("div",{className:"edit"},e.createElement("sr-opt-gp",null,e.createElement(h.default,{multi:!1,floatingtext:"图标",value:this.state.task.icon,onChange:function(e){return t.onEditChange(e.target.value,"icon")}})),e.createElement("sr-opt-gp",null,e.createElement(h.default,{multi:!1,floatingtext:"前景色",value:this.state.task.color,onChange:function(e){return t.onEditChange(e.target.value,"color")}})),e.createElement("sr-opt-gp",null,e.createElement(h.default,{multi:!1,floatingtext:"背景色",value:this.state.task.bgColor,onChange:function(e){return t.onEditChange(e.target.value,"bgColor")}})))),e.createElement("sr-opt-gp",null,e.createElement(h.default,{multi:!1,floatingtext:"描述",placeholder:"为当前 Task 设置一个名字吧",value:this.state.task.name,onChange:function(e){return t.onNameChange(e.target.value,"name")}})),e.createElement("sr-opt-gp",null,e.createElement("sr-opt-label",null,"当加入"),e.createElement(p.default,{name:N(this.state.task.target),width:"100%",items:N(),onChange:function(e,n){return t.onChange(e,"target")}})),e.createElement("sr-opt-gp",{class:"action"},e.createElement("sr-opt-label",null,"导出服务"),e.createElement("span",{style:{width:"100%",height:"10px"}}),n,e.createElement(m.default,{type:"flat",text:"添加一个新的导出",style:{margin:"10px 0 15px 0"},color:"#fff",backgroundColor:"#1fab89",fontIcon:'<i class="fas fa-project-diagram" style="color:#fff;"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.onNewAction()}})),e.createElement("sr-opt-gp",{style:{display:"block"}},e.createElement("sr-opt-label",null,"执行"),e.createElement(p.default,{name:j(this.state.task.type),width:"100%",items:j(),onChange:function(e,n){return t.onChange(e,"type")}}),e.createElement("div",{className:"sublabel",style:{"-webkit-line-clamp":"initial"},dangerouslySetInnerHTML:{__html:"disable"==this.state.task.type?"意味着暂时使用此 Task。":"auto"==this.state.task.type?"意味着当使用相应触发器后会自动运行此 Task。":"1. 意味着你可以在 <b>控制栏 → 动作面板</b> 里面手动选择触发此 Task。<br>2. 支持 <b>聚焦模式</b> 或 <b>阅读模式</b>。<br>3. 仅当使用此模式时，才会出现在 <b>控制栏 → 动作面板</b>。"}})),e.createElement("sr-opt-gp",null,e.createElement("sr-opt-label",null,"说明"),e.createElement("div",{className:"notice"},e.createElement("div",{className:"sublabel"},"1. 建议对不同的 Task 设置不同的颜色，颜色来源可参考 ",e.createElement("a",{href:"https://colorhunt.co/",target:"_blank"},"Color Hunt"),"。"),e.createElement("div",{className:"sublabel"},"2. 建议对不同的 Task 设置不同的图标，图标仅支持 ",e.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&p=2&m=free",target:"_blank"},"Font Awesome"),"。"),e.createElement("div",{className:"sublabel"},"3. 当使用 ",e.createElement("b",null,"标注")," 时，建议不要选择 ",e.createElement("b",null,"离线 HTML")," 或 ",e.createElement("b",null,"离线 Markdown"),"，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/自动化?id=性能建议",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"4. 关于 ",e.createElement("b",null,"自动化")," 的更多说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/自动化",target:"_blank"},"请看这里"),"。"))))}}]),n}(e.Component);O.defaultProps={task:{}};var z=function(t){function n(){return i(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return l(n,t),c(n,[{key:"close",value:function(){g.Close()}},{key:"remove",value:function(){this.props.onSave("remove",this.props.task)}},{key:"save",value:function(){this.props.onSave("update",this.props.task)}},{key:"componentDidMount",value:function(){y.Render({root:A}),k.Render(A)}},{key:"render",value:function(){var t=this;return e.createElement(g.Dialog,null,e.createElement(g.Content,null,e.createElement("div",null,e.createElement(O,{task:this.props.task}))),e.createElement(g.Footer,null,e.createElement(m.default,{text:"删 除",waves:"md-waves-effect",color:"#fff",backgroundColor:"#FF5252",onClick:function(){return t.remove()},width:"70%"}),e.createElement("div",{style:{width:"100%"}}),e.createElement(m.default,{text:"关 闭",mode:"secondary",waves:"md-waves-effect",color:"#1fab89",onClick:function(){return t.close()}}),e.createElement(m.default,{text:"保 存",waves:"md-waves-effect",color:"#1fab89",onClick:function(){return t.save()}})))}}]),n}(e.Component);z.defaultProps={task:{}};var T=function(t){function n(){var e,t,a,r;i(this,n);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return t=a=s(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={automated:a.props.automated,urservice:[],anservice:[]},r=t,s(a,r)}return l(n,t),c(n,[{key:"onChange",value:function(e,t,n){var a=this;this.state.automated.forEach(function(r){r.id==t&&(r[n]=e,"annote"==e?r.action.forEach(function(e){var t=a.state.anservice.findIndex(function(t){return t.value==e.value});e.disable=t==-1}):"unreader"==e&&r.action.forEach(function(e){var t=a.state.urservice.findIndex(function(t){return t.value==e.value});e.disable=t==-1}))}),this.save()}},{key:"onContrlClick",value:function(e,t,n){var a=this;if("remove"==n)if($(e.currentTarget).hasClass("confrim")){var r=this.state.automated.findIndex(function(e){return e.id==t});r!=-1&&this.state.automated.splice(r,1),$(".task[data-id="+t+"]").slideUp(function(){a.save(),$(".task").removeAttr("style"),$(".task .icon.remove").removeClass("confrim")})}else $(e.currentTarget).addClass("confrim");else"editor"==n?this.open(t):"enable"==n&&(this.state.automated.forEach(function(e){e.id==t&&(e.enable=!e.enable)}),$(e.currentTarget).addClass("confrim"),this.save())}},{key:"onSave",value:function(e,t){if("update"==e){var n=this.state.automated.findIndex(function(e){return e.id==t.id});n!=-1?this.state.automated.splice(n,1,t):this.state.automated.push(t)}else if("remove"==e){var a=this.state.automated.findIndex(function(e){return e.id==t.id});a!=-1&&this.state.automated.splice(a,1)}this.save()}},{key:"save",value:function(){this.setState({automated:this.state.automated}),C.storage.option.automated=this.state.automated,this.props.onChange&&this.props.onChange()}},{key:"new",value:function(e){return{id:e,name:"",color:"#fff",bgColor:"#195bf7",icon:'<i class="fas fa-project-diagram"></i>',type:"auto",target:"unreader",action:[{id:+new Date,value:"html"}]}}},{key:"open",value:function(t){var n=this,a=this.state.automated.findIndex(function(e){return e.id==t}),r=a!=-1?this.state.automated[a]:this.new(t);!g.Popup(A)&&g.Open(e.createElement(z,{task:r,onSave:function(e,t){return n.onSave(e,t)}}),_)}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.state.urservice=S("unreader"),e.state.anservice=S("annote")},500)}},{key:"render",value:function(){var t=this,n=this.state.automated&&this.state.automated.length>0?this.state.automated.map(function(n){var a=n.action.map(function(t){var n=E.findService(t.value);return e.createElement("span",{className:"tooltip","data-balloon-pos":"up","aria-label":n.name.replace("导出为 ","").replace("保存到 ","").replace("webdav_","").replace("custom_","").replace("webhook_","")},n.icon.startsWith("<i")?e.createElement("span",{className:"icon","data-disable":t.disable,style:{color:"#fff",backgroundColor:n.color},dangerouslySetInnerHTML:{__html:n.icon}}):e.createElement("span",{className:"icon","data-disable":t.disable,style:{color:"#fff",backgroundColor:n.color,backgroundImage:"url("+n.icon+")"}}))});return e.createElement("div",{className:"task","data-id":n.id},e.createElement("div",{className:"avator","data-balloon-pos":"right","aria-label":n.name,style:{color:n.color,backgroundColor:n.bgColor}},e.createElement("span",{dangerouslySetInnerHTML:{__html:n.icon}})),e.createElement("span",{className:"normal"},"当加入"),e.createElement("div",{className:"editor target"},"manual"==n.type&&e.createElement("span",{className:"notice","data-balloon-pos":"up","aria-label":"当使用手动方式时，触发器失效"},"!"),"disable"==n.type&&e.createElement("span",{className:"notice","data-balloon-pos":"up","aria-label":"当前 Task 暂停使用"},"!"),e.createElement("span",{className:"cover"},N(n.target)),e.createElement(p.default,{name:N(n.target),width:"80px",items:N(),onChange:function(e,a){return t.onChange(e,n.id,"target")}})),e.createElement("span",{className:"normal"},"后，导出到"),e.createElement("div",{className:"editor action"},a),e.createElement("span",{className:"normal"},"执行"),e.createElement("div",{className:"editor type"},e.createElement("span",{className:"cover"},j(n.type)),e.createElement(p.default,{name:j(n.type),width:"80px",items:j(),onChange:function(e,a){return t.onChange(e,n.id,"type")}})),e.createElement("div",{className:"control"},e.createElement("span",{className:"tooltip","data-balloon-pos":"up","aria-label":"编辑"},e.createElement("span",{className:"md-waves-effect icon editor",onClick:function(e){return t.onContrlClick(e,n.id,"editor")}},e.createElement("i",{className:"fas fa-pencil-alt"}))),e.createElement("span",{className:"tooltip","data-balloon-pos":"up","aria-label":"删除"},e.createElement("span",{className:"md-waves-effect icon remove",onClick:function(e){return t.onContrlClick(e,n.id,"remove")}},e.createElement("i",{className:"fas fa-times"})))))}):e.createElement("div",{className:"empty"},"当前 ",e.createElement("b",null,"没有任何自动化方案"),"，请通过下方增加一个新的自动化。");return e.createElement("div",{className:"automated"},n,e.createElement(m.default,{type:"flat",text:"添加新的自动化任务",style:{margin:"15px 0 15px 0"},color:"#fff",backgroundColor:"#1fab89",fontIcon:'<i class="fas fa-project-diagram" style="color:#fff;"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.open(+new Date)}}),e.createElement("div",null,e.createElement("div",{className:"sublabel"},"1. ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/自动化",target:"_blank"},e.createElement("b",null,"自动化"))," 是 ",e.createElement("b",null,"2.2.0")," 版本增加的功能，使用此功能可以完成 ",e.createElement("b",null,"导出服务间的搭配"),"，如："),e.createElement("div",{className:"sublabel",style:{display:"block"}},e.createElement("ul",{style:{margin:"5px 0"}},e.createElement("li",null,"加入 ",e.createElement("b",null,"稍后读")," 后，",e.createElement("b",null,"导出到 HTML 到本地")," 以及给我 ",e.createElement("b",null,"发送邮件"),"；"),e.createElement("li",null,"加入 ",e.createElement("b",null,"稍后读")," 后，",e.createElement("b",null,"导出到 Notion"),"；"),e.createElement("li",null,"加入 ",e.createElement("b",null,"标注")," 后，每当标注有更新都会自动 ",e.createElement("b",null,"导出标注到本地"),"，尤其可以配合 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=markdown",target:"_blank"},"自定义模板"),"，可方便结合类似 ",e.createElement("b",null,"Obsidian")," 联动效果；"),e.createElement("li",null,"加入 ",e.createElement("b",null,"标注")," 后，每当标注有更新配合 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},"简悦 · 同步助手")," 到 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/自动化?id=Readwise"},"Readwise.io")," 或 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/自动化?id=hypothesis"},"Hypothes.is"),"；"))),e.createElement("div",{className:"sublabel"},"    关于 ",e.createElement("b",null,"自动化")," 的更多说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/自动化",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"3. 当使用 ",e.createElement("b",null,"稍后读")," 时，仅在 ",e.createElement("b",null,"进入阅读模式")," 后加入稍后读才会 ",e.createElement("b",null,"触发自动化")," 流程，",e.createElement("b",null,"未进入阅读模式无法触发"),"。"),e.createElement("div",{className:"sublabel"},"4. 当使用 ",e.createElement("b",null,"标注")," 时，包括：增加，修改，删除时 ",e.createElement("b",null,"都会触发自动化")," 流程；建议不要选择 ",e.createElement("b",null,"离线 HTML")," 或 ",e.createElement("b",null,"离线 Markdown"),"，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/自动化?id=性能建议",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"5. 当使用 ",e.createElement("b",null,"标注")," 时，由于 API 限制导致仅支持的部分服务，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/自动化?id=支持服务",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"6. 当使用 ",e.createElement("b",null,"手动模式")," 时，会出现在 ",e.createElement("b",null,"聚焦模式")," 与 ",e.createElement("b",null,"阅读模式")," ",e.createElement("b",null,"控制栏 → 动作面板"),"。"),e.createElement("div",{className:"sublabel"},"7. 当使用 ",e.createElement("b",null,"手动模式")," 时，与其它的导出服务使用方式类似，可以理解为 ",e.createElement("b",null,"多个动作的组合"),"，如：同时导出到 ",e.createElement("b",null,"Pocket")," ",e.createElement("b",null,"Noton")," 和 ",e.createElement("b",null,"复制到剪切板"),"。"),e.createElement("div",{className:"sublabel"},"8. 由于此功能比较耗费性能，建议 ",e.createElement("b",null,"不要超过3个")," 自动化方案。")))}}]),n}(e.Component);T.defaultProps={automated:[]},t.default=T}).call(t,n(2),n(7))},335:function(e,t,n){(function(e){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),p=n(10),u=r(p),m=n(7),f=r(m),h=n(14),b=r(h),g=n(32),v=r(g),k=n(31),w=r(k),y=n(9),x=a(y),E=n(4),C=n(90),_=a(C),A=n(161),N=a(A),S=n(24),j=a(S),O=n(28),z=a(O),T=n(3),R=n(6),M=a(R),I=n(21),P=n(118),L=a(P),D=function(t){function n(){var e,t,a,r;o(this,n);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return t=a=i(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={port:E.storage.option.remote.port,autosync:E.storage.option.remote.sync,sync:function(e){return e?"上次同步时间： "+e:"从未同步过，建议同步一次！"}(E.storage.option.sync)},r=t,i(a,r)}return s(n,t),d(n,[{key:"vaultOnChange",value:function(e){E.storage.option.save_at=e,this.props.onChange(!0)}},{key:"modeOnChange",value:function(e){localStorage.setItem("simpread-option-common",e),(new f.default).Render({type:1,content:'切换成功，<b>刷新页面后才能生效</b>，关于模式切换的详细说明 <a target="_blank" href="http://ksria.com/simpread/docs/#/简易模式"><b>请看这里</b></a>。',state:"holdon",action:"刷新",callback:function(e){"action"==e&&location.reload()}})}},{key:"sync",value:function(){var e=this,t=void 0,n=z.dropbox,a=z.jianguo,r=function(){E.storage.option.sync=(0,E.Now)(),E.storage.Write(function(){s()})},o=function(){t=(new f.default).Render({content:"数据同步中，请稍等...",state:"loading"}),n.Exist(n.config_name,function(e,t){e==-1?r():n.Read(n.config_name,l)})},i=function(e){t=(new f.default).Render({content:"数据同步中，请稍等...",state:"loading"}),a.Read(e.username,e.password,a.config_name,function(e){e&&404==e.status?r():e&&200==e.status&&l("read",e.done)})},s=function(){"dropbox"==E.storage.option.save_at?n.Write(n.config_name,E.storage.Export(),l):a.Add(E.storage.secret.jianguo.username,E.storage.secret.jianguo.password,a.root+"/"+a.config_name,E.storage.Export(),function(e){l("write",void 0,e&&[201,204].includes(e.status)?void 0:"error")})},l=function(n,a,o){t.complete(),function(){switch(n){case"write":o?(new f.default).Render(2,"error"==o?"远程数据同步失败，请稍后再试！":o):location.href=location.origin+location.pathname+"?simpread_mode=sync";break;case"read":var t=JSON.parse(a),i=E.storage.option.update?new Date(E.storage.option.update.replace(/年|月/gi,"-").replace("日","")):new Date("1999-01-01 12:12:12"),s=new Date(t.option.update.replace(/年|月/gi,"-").replace("日",""));1==_.Compare(t.version)?(new f.default).Render("本地版本与远程版本不一致，且本地版本较新，是否覆盖远程版本？","覆盖",function(){j.SendMessage("import",!0),r()}):i<s?(new f.default).Render("远程备份配置文件较新，是否覆盖本地文件？","覆盖",function(){e.importsecret(t.option.secret,c({},t.secret),function(){delete t.secret;var e="reload";t.user.uid==E.storage.user.uid&&t.user.rule!=E.storage.user.rule?(t.user.rule=1,I.auth.removeToken(),e="reload_lock"):t.user.uid!=E.storage.user.uid&&(t.user.rule=1,I.auth.removeToken(),e="reload_changeuid");var n=t.option.plugins,a=E.storage.option.plugins,r=n.filter(function(e){return!(a.indexOf(e)>-1)}).concat(a.filter(function(e){return!(n.indexOf(e)>-1)}));r.length>0&&(new f.default).Render({type:2,content:"导入的配置文件与本地插件不一致，刷新后 <b>插件管理 → 从配置文件 </b>导入。",state:"holdon"}),E.storage.Write(function(){E.storage.Plugins(function(){t.plugstorge&&Object.keys(t.plugstorge).forEach(function(e){return t.plugstorge[e]&&E.storage.PluginStorage(e,t.plugstorge[e])}),j.SendMessage("import",!0),(new f.default).Render("导入成功，请刷新当前页面，以便新配置文件生效。","刷新",function(){location.href=location.origin+location.pathname+"?simpread_mode="+e})})},t)})}):i>s?(new f.default).Render("本地配置文件较新，是否覆盖远程备份文件？","覆盖",function(){j.SendMessage("import",!0),r()}):(new f.default).Render("本地与远程数据相同，无需重复同步。")}}()};return E.storage.option.remote.sync?void(new f.default).Render(2,"已开启简悦 · 同步助手的 <b>自动同步方案</b>，无需手动同步。"):void E.storage.Safe(function(){if(T.browser.runtime.sendMessage(M.Add(M.MESSAGE_ACTION.track,{eventCategory:"sync",eventAction:"sync",eventValue:E.storage.option.save_at})),"dropbox"==E.storage.option.save_at)!function(){var e=E.storage.secret.dropbox;e.access_token?function(){n.access_token=e.access_token,o()}():(new f.default).Render("未对 "+n.name+" 授权，请先进行授权操作。","授权",function(){n.New().Auth(),n.dtd.done(function(){e.access_token=n.access_token,E.storage.Safe(function(){(new f.default).Render("授权成功！"),o()},E.storage.secret)}).fail(function(e){(new f.default).Render(2,"获取 "+n.name+" 授权失败，请重新获取。")})})}();else{var e=E.storage.secret.jianguo;e.access_token?i(E.storage.secret.jianguo):(new f.default).Render(2,'坚果云 <b>授权</b> 后才能使用此功能，如何授权 <a href="http://ksria.com/simpread/docs/#/坚果云">请看这里</a>。')}})}},{key:"import",value:function(){var e=this,t=document.createElement("input"),n=$(t),a=function(t){if(t&&t.target&&t.target.result)try{!function(){var n=_.FixSubver(_.patch,JSON.parse(t.target.result));n=E.storage.Verify(n);var a=n.user.rule||1,r=_.Compare(n.version);r<0?(r==-1&&(new f.default).Render(2,"上传失败，当前版本太低，请升级简悦。"),r==-2&&(new f.default).Render(2,"上传失败，配置文件版本不存在。")):!function(){0==r||1==r&&(E.storage.version!=n.version&&E.storage.Fix(n.read.sites,n.version,E.storage.version,n.focus.sites),n=_.Verify(n.version,n),(new f.default).Render({type:2,content:"上传版本太低，已自动转换为最新版本。",state:"holdon"})),N.Refresh(n.option.menu),_.Incompatible(n.version,n)&&(new f.default).Render({type:2,content:'检测到你曾经修改过第三方适配源，<b>务必刷新后重新导入</b>！<a target="_blank" href="http://ksria.com/simpread/docs/#/站点适配源?id=第三方适配源">详细说明</a>',state:"holdon"}),_.VerifyPlugins(n.option)&&(new f.default).Render({type:2,content:'已清理失效的插件，详细请看 <a href="http://ksria.com/simpread/welcome/version_'+n.version+'.html#badplugins" target="_blank">失效插件</a>',state:"holdon"}),n.option.origins&&n.option.origins.length>0&&(new f.default).Render({content:"导入的配置文件包含了第三方源，刷新后请重新 <b>手动导入</b>。",state:"holdon"});var t=n.option.plugins,o=E.storage.option.plugins,i=t.filter(function(e){return!(o.indexOf(e)>-1)}).concat(o.filter(function(e){return!(t.indexOf(e)>-1)}));i.length>0&&(new f.default).Render({type:2,content:"导入的配置文件与本地插件不一致，刷新后 <b>插件管理 → 从配置文件 </b>导入。",state:"holdon"}),I.auth.removeToken(),I.auth.removeLock(),n.user.rule=a,e.importsecret(n.option.secret,c({},n.secret),function(){delete n.secret,E.storage.Statistics(n.statistics,void 0,"change",function(){E.storage.UnRead("change",n.unrdist,function(e){E.storage.Collections("change",n.collections,function(e){E.storage.Write(function(){E.storage.Plugins(function(){n.plugstorge&&Object.keys(n.plugstorge).forEach(function(e){return n.plugstorge[e]&&E.storage.PluginStorage(e,n.plugstorge[e])}),j.SendMessage("import",!0),2==n.user.rule?((new f.default).Render(1,"导入成功，发现当前为高级账户，开始授权当前设备，请稍等..."),setTimeout(function(){return location.href=location.origin+location.pathname+"?simpread_mode=signin"},1e3)):(new f.default).Render("导入成功，请刷新当前页面，以便新配置文件生效。","刷新",function(){location.href=location.origin+location.pathname+"?simpread_mode=reload"})})},n)})})})})}()}()}catch(e){(new f.default).Render(2,"上传失败，配置文件解析失败，请重新确认。")}};n.attr({type:"file",multiple:"false"}).one("change",function(e){var t=new FileReader;t.onload=a,t.readAsText(e.target.files[0])}),n.trigger("click")}},{key:"export",value:function(){if(T.br.isFirefox())z.PrDownload(E.storage.Export(),"simpread-config.json");else{var e="data:text/json;charset=utf-8,"+encodeURIComponent(E.storage.Export());z.Download(e,"simpread-config-"+(0,E.Now)()+".json")}}},{key:"enforce",value:function(e){var t=this,n=void 0,a=z.dropbox,r=z.jianguo,o=function(e,a,r){if(n.complete(),"write"==e)r?(new f.default).Render(2,"error"==r?"远程数据同步失败，请稍后再试！":r):location.href=location.origin+location.pathname+"?simpread_mode=sync";else if("read"==e){var o=function(){if(r)return(new f.default).Render(2,"error"==r?"远程数据获取失败，请稍后再试！":r),{v:void 0};var e=JSON.parse(a);E.storage.version!=e.version&&(E.storage.Fix(e.read.sites,e.version,E.storage.version,e.focus.sites),e=_.Verify(e.version,e),(new f.default).Render({type:2,content:"导入的版本太低，已自动转换为最新版本。",state:"holdon"})),t.importsecret(e.option.secret,c({},e.secret),function(){delete e.secret;var t="reload",n=e.option.plugins,a=E.storage.option.plugins,r=n.filter(function(e){return!(a.indexOf(e)>-1)}).concat(a.filter(function(e){return!(n.indexOf(e)>-1)}));r.length>0&&(new f.default).Render({type:2,content:"导入的配置文件与本地插件不一致，刷新后 <b>插件管理 → 从配置文件 </b>导入。",state:"holdon"}),E.storage.Write(function(){E.storage.Plugins(function(){e.plugstorge&&Object.keys(e.plugstorge).forEach(function(t){return e.plugstorge[t]&&E.storage.PluginStorage(t,e.plugstorge[t])}),j.SendMessage("import",!0),2==e.user.rule&&E.storage.version==e.version?((new f.default).Render(1,"导入成功，发现当前为高级账户，开始授权当前设备，请稍等..."),setTimeout(function(){return location.href=location.origin+location.pathname+"?simpread_mode=signin"},1e3)):(new f.default).Render("导入成功，请刷新当前页面，以便新配置文件生效。","刷新",function(){location.href=location.origin+location.pathname+"?simpread_mode="+t})})},e)})}();if("object"===("undefined"==typeof o?"undefined":l(o)))return o.v}},i=function(){n=(new f.default).Render({content:"数据同步中，请稍等...",state:"loading"}),a.access_token=E.storage.secret.dropbox.access_token,a.Read(a.config_name,o)},s=function(e){n=(new f.default).Render({content:"数据同步中，请稍等...",state:"loading"}),r.Read(e.username,e.password,r.config_name,function(e){e&&404==e.status?(new f.default).Render(2,"远程配置文件不存在，无法覆盖，请先上传配置文件。"):e&&200==e.status&&o("read",e.done)})};"upload"==e?(new f.default).Render("是否强制覆盖远程配置文件？","覆盖",function(){E.storage.option.sync=(0,E.Now)(),E.storage.Write(function(){n=(new f.default).Render({content:"数据同步中，请稍等...",state:"loading"}),"dropbox"==E.storage.option.save_at?(a.access_token=E.storage.secret.dropbox.access_token,a.Write(a.config_name,E.storage.Export(),o)):r.Add(E.storage.secret.jianguo.username,E.storage.secret.jianguo.password,r.root+"/"+r.config_name,E.storage.Export(),function(e){o("write",void 0,e&&[201,204].includes(e.status)?void 0:"error")})})}):(new f.default).Render("是否强制覆盖本地配置文件？","覆盖",function(){"dropbox"==E.storage.option.save_at?E.storage.secret.dropbox.access_token?i():(new f.default).Render(2,'Dropdown <b>授权</b> 后才能使用此功能，如何授权 <a href="http://ksria.com/simpread/docs/#/授权服务">请看这里</a>。'):E.storage.secret.jianguo.access_token?s(E.storage.secret.jianguo):(new f.default).Render(2,'坚果云 <b>授权</b> 后才能使用此功能，如何授权 <a href="http://ksria.com/simpread/docs/#/坚果云">请看这里</a>。')})}},{key:"override",value:function(e){E.storage.version!=e.version&&(E.storage.Fix(e.read.sites,e.version,E.storage.version,e.focus.sites),e=_.Verify(e.version,e),(new f.default).Render({type:2,content:"导入的版本太低，已自动转换为最新版本。",state:"holdon"})),this.importsecret(e.option.secret,c({},e.secret),function(){delete e.secret,E.storage.Statistics(e.statistics,void 0,"change",function(){E.storage.UnRead("change",e.unrdist,function(t){E.storage.Collections("change",e.collections,function(t){1==e.option.remote.sync&&sessionStorage.setItem("option.remote.sync","open"),1==e.option.remote.sync&&(e.option.remote.sync=!1),E.storage.Write(function(){E.storage.Plugins(function(){e.plugstorge&&Object.keys(e.plugstorge).forEach(function(t){return e.plugstorge[t]&&E.storage.PluginStorage(t,e.plugstorge[t])}),j.SendMessage("import",!0),setTimeout(function(){return location.href=location.origin+location.pathname+"?simpread_mode=signin"},1e3)})},e)})})})})}},{key:"oldnewsites",value:function(){(new f.default).Render("此功能转移到 <b>站点管理</b> 选项卡里面，3 秒钟后自动切换到此选项卡。"),setTimeout(function(){location.href=location.origin+"/options/options.html#labs",window.dispatchEvent(new CustomEvent(M.MESSAGE_ACTION.turn_tab,{detail:{page:3}}))},3e3)}},{key:"newsites",value:function(){var e=(new f.default).Render({content:"数据同步中，请稍等...",state:"loading"});E.storage.GetRemote("remote",function(t,n){e.complete(),n?(new f.default).Render(3,"同步时发生了一些问题，并不会影响本地配置文件，请稍后再试！"):!function(){var e=E.storage.pr.Addsites(t);E.storage.Writesite(E.storage.pr.sites,function(){j.SendMessage("site",!0),0==e?(new f.default).Render("适配列表已同步至最新版本。"):(new f.default).Render(0,"适配列表已同步成功，本次新增 "+e+" 个站点。")})}()})}},{key:"init",value:function(){(new f.default).Render("snackbar","是否重置本地配置文件（仅保留用户信息）？","同意 ",function(){var e=$.extend(!0,{},E.storage.user),t=$.extend(!0,[],E.storage.simpread.sites);E.storage.Clear("local",function(){E.storage.init.user=e,E.storage.init.sites=t,E.storage.Write(function(){j.SendMessage("import",!0),(new f.default).Render("snackbar","重置成功，此页面需刷新后才能生效！","刷新 ",function(){location.href=location.origin+location.pathname+"?simpread_mode=init"})},E.storage.init)})})}},{key:"clear",value:function(){(new f.default).Render("snackbar","是否清除掉（已包含账户信息）本地配置文件？","同意 ",function(){E.storage.Clear("local",function(){(new f.default).Render("snackbar","清除成功，此页面需刷新后才能生效！","刷新 ",function(){location.href=location.origin+location.pathname+"?simpread_mode=clear"})})})}},{key:"portOnChange",value:function(e){E.storage.option.remote.port=e,this.setState({port:e}),this.props.onChange()}},{key:"syncRemoteOnChange",value:function(e){var t=this;this.setState({autosync:!1});var n=function(){t.setState({autosync:e}),L.setPause(!0),E.storage.option.remote.sync=e,$(t.refs.remote_sync).velocity(e?"slideDown":"slideUp"),t.props.onChange(),setTimeout(function(){L.setPause(!1)},1e3),e?((new f.default).Render({type:1,content:"已 <b>开启</b> 自动同步功能。<br>开启后当前页面的设置将会无效，你可以通过下方选择 <b>导出当前配置</b> 或 <b>读取同步后的配置文件</b>。",state:"holdon"}),(new f.default).Render({type:1,content:"<b>当开启自动同步后</b>，是否也需要同步开启 <b>增强导出</b> 功能？（如已开启请忽略此信息）",action:"开启",state:"holdon",callback:function(e){"action"==e&&(location.href=location.origin+"/options/options.html#connect",window.dispatchEvent(new CustomEvent(M.MESSAGE_ACTION.turn_tab,{detail:{page:3}})),setTimeout(function(){return $('.label[data-name="增强导出"]')[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},200))}})):((new f.default).Render({type:1,content:'已 <b>关闭</b> 自动同步功能，关于此功能的注意事项 <a target="_blank" href="http://ksria.com/simpread/docs/#/Sync?id=自动同步">请看这里</a>。',state:"holdon"}),(new f.default).Render({type:2,content:"<b>增强导出</b> 功能也 <b>依赖于同步助手</b>，如果不使用同步助手的话，是否也需要一并关闭增强导出功能？（如已关闭请忽略此信息）",action:"关闭",state:"holdon",callback:function(e){"action"==e&&(location.href=location.origin+"/options/options.html#connect",window.dispatchEvent(new CustomEvent(M.MESSAGE_ACTION.turn_tab,{detail:{page:3}})),setTimeout(function(){return $('.label[data-name="增强导出"]')[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},200))}}))};!e&&n(),e&&$.ajax({url:"http://localhost:"+this.state.port+"/config",type:"GET",headers:{uid:E.storage.user.uid}}).then(function(e){200==e.status?(T.browser.runtime.sendMessage(M.Add(M.MESSAGE_ACTION.track,{eventCategory:"desktop",eventAction:"desktop",eventValue:"auto_sync"})),n()):e.status==-1&&(t.setState({autosync:!1}),"ENOENT"==e.error.code?((new f.default).Render({type:2,content:"同步文件夹暂无配置文件，可以通过下方将当前配置文件保存到同步盘。",state:"holdon"}),n()):"root"==e.error.code?(new f.default).Render({type:2,content:'使用 <b>自动同步功能</b> 需要先设置 <b>简悦 · 同步助手</b> 同步文件夹路径，详细 <a target="_blank" href="http://ksria.com/simpread/docs/#/Sync?id=同步">请看这里</a>',
state:"holdon"}):(new f.default).Render({type:3,content:"发生了未知错误，请确认你的操作是否无误。",state:"holdon"}))},function(e,t,n){})}},{key:"syncVerify",value:function(){var e=this;T.browser.runtime.sendMessage(M.Add(M.MESSAGE_ACTION.verify_rule,{type:"now",uid:E.storage.user.uid}),function(t){t?(I.auth.lock=!0,I.auth.lock_status=t.status,e.props.onLock()):I.auth.getFinger(function(t){$.ajax({url:"http://localhost:"+e.state.port+"/verify",type:"POST",headers:{uid:E.storage.user.uid,finger:t}}).then(function(e){201==e.code?((new f.default).Render(1,"已绑定当前账户到简悦 · 同步助手。"),T.browser.runtime.sendMessage(M.Add(M.MESSAGE_ACTION.track,{eventCategory:"desktop",eventAction:"desktop",eventValue:"bind"}))):403==e.code&&"uid"==e.status?(new f.default).Render({type:3,content:"一个简悦 · 同步助手仅对应一个高级账户，如需更改请 <b>重新安装简悦 · 同步助手</b>",state:"holdon"}):403==e.code&&"same"==e.status&&(new f.default).Render(2,"简悦 · 同步助手已绑定成功，无需重复绑定。")},function(e,t,n){})})})}},{key:"syncRemote",value:function(e){"set"==e?(new f.default).Render({content:"是否通过简悦 · 同步助手保存？",action:"保存",cancel:"取消",callback:function(e){"action"==e&&(E.storage.option.sync=E.storage.option.update),"action"==e&&L.setRemote(E.storage.option.remote.port,E.storage.Export(),function(e,t){t?(new f.default).Render(3,"同步配置文件失败。"):(new f.default).Render(1,"同步配置文件成功，页面刷新后生效。")})}}):(new f.default).Render({content:"是否覆盖当前环境？",action:"覆盖",cancel:"取消",callback:function(e){"action"==e&&((new f.default).Render("2秒后自动刷新本页即可生效。"),setTimeout(function(){return location.reload()},2e3))}})}},{key:"importsecret",value:function(e,t,n){e&&!$.isEmptyObject(t)?E.storage.Safe(function(){n()},t):n()}},{key:"slideOnClick",value:function(e){$(e.currentTarget).parent().find("i").toggleClass("active"),$(".slidegroup").slideToggle()}},{key:"componentDidMount",value:function(){var e=this;this.props.website_sync&&E.storage.GetRemote("versions",function(t,n){n||1!=t.website||((new f.default).Render("正在获取最新的适配列表，请稍等..."),e.newsites())}),E.storage.option.remote.export.mail?$(this.refs.mail).slideDown():$(this.refs.mail).slideUp(),window.addEventListener("account_action",function(t){"config"==t.detail.action?e.override(t.detail.config):"sync_set"==t.detail.action?e.syncRemote("set"):"sync_close"==t.detail.action&&e.syncRemoteOnChange(!1)}),"simple"==localStorage.getItem("simpread-option-common")&&setTimeout(function(){$("div[data-name]").map(function(e,t){var n=$(t),a=n.next();name=n.attr("data-name"),["同步盘","手动同步","同步方式","同步时间","同步助手","验证","自动同步"].includes(name)&&(n.css("display","none"),a.css("display","none"),$(".sublabel.blockquote").css("display","none"),$("toc-bg").css("display","none"),$(".simple_mode").removeAttr("style")),"模式切换"==n.attr("data-name")&&(n.addClass("float"),a.addClass("float"),!n.hasClass("close")&&n.click())})},300)}},{key:"render",value:function(){var t=this;return e.createElement("div",{id:"labs",className:"common","data-page":"common",style:{width:"100%",overflow:"hidden"}},e.createElement("div",{className:"label","data-head-level":"h1"},"配置文件"),e.createElement("div",{className:"lab"},e.createElement("div",{className:"version-tips","data-hits":"config"},e.createElement("div",{className:"sublabel blockquote"},"简悦的一切数据均保存在配置文件中，包括：",e.createElement("b",null,"选项页的配置项 · 稍后读 · 标注 · 合辑")," 等，方便迁移或者保持多个设备的同步，甚至 ",e.createElement("b",null,"高级账户的授权也依赖于")," 配置文件，详细说明 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/配置文件"},e.createElement("b",null,"请看这里")),"。"),e.createElement("div",{className:"simple_mode",style:{display:"none"}},e.createElement("div",{className:"version-tips","data-hits":"sync"},e.createElement(u.default,{type:"flat",text:"同步到你的 "+("dropbox"==E.storage.option.save_at?"Dropbox":"坚果云")+" 账户",icon:x.IconPath(E.storage.option.save_at+"_icon"),color:"#fff",backgroundColor:"#1976D2",waves:"md-waves-effect md-waves-button",tooltip:{text:this.state.sync},onClick:function(){return t.sync()}})),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"enforce"},e.createElement("div",{style:{display:"inline-flex",width:"100%"}},e.createElement(u.default,{type:"flat",text:"强制覆盖配置文件到"+("dropbox"==E.storage.option.save_at?" Dropbox":"坚果云"),width:"100%",icon:x.IconPath("export_icon"),color:"#fff",backgroundColor:"#1976D2",waves:"md-waves-effect md-waves-button",tooltip:{text:"将强制覆盖掉云端配置文件，请注意确认！"},onClick:function(){return t.enforce("upload")}}),e.createElement(u.default,{type:"flat",text:"强制从云端下载配置文件",width:"100%",icon:x.IconPath("import_icon"),color:"#fff",backgroundColor:"#1976D2",waves:"md-waves-effect md-waves-button",tooltip:{text:"将强制覆盖掉当前配置文件，请注意确认！"},onClick:function(){return t.enforce("download")}})))),e.createElement("div",{style:{display:"inline-flex",width:"100%"}},e.createElement(u.default,{type:"flat",text:"从本地导入配置文件",width:"100%",icon:x.IconPath("import_icon"),color:"#fff",backgroundColor:"#2196F3",waves:"md-waves-effect md-waves-button",tooltip:{text:"上传后的配置将覆盖掉当前，请注意确认！"},onClick:function(){return t.import()}}),e.createElement(u.default,{type:"flat",text:"导出配置文件到本地",width:"100%",icon:x.IconPath("export_icon"),color:"#fff",backgroundColor:"#2196F3",waves:"md-waves-effect md-waves-button",onClick:function(){return t.export()}}))),e.createElement("div",{style:{display:"inline-flex",width:"100%"}},e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"init",style:{display:"inline-flex",width:"50%"}},e.createElement(u.default,{type:"flat",text:"重置当前配置文件",width:"100%",fontIcon:'<i class="fas fa-redo"></i>',color:"#fff",backgroundColor:"#757575",waves:"md-waves-effect md-waves-button",tooltip:{text:"仅初始化配置文件，但会保留当前用户信息（包含 UID ）"},onClick:function(){return t.init()}})),e.createElement("div",{className:"version-tips","data-hits":"clear",style:{display:"inline-flex",width:"50%"}},e.createElement(u.default,{type:"flat",text:"清除当前全部数据",width:"100%",icon:x.IconPath("clear_icon"),tooltip:{text:"清除掉当前配置文件，包括 UID，如需重置请使用重置功能。"},color:"#fff",backgroundColor:"#FF5252",waves:"md-waves-effect md-waves-button",onClick:function(){return t.clear()}})))),e.createElement("div",{className:"label","data-head-level":"h1"},"同步盘"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{className:"sublabel"},"1. 因为 ",e.createElement("b",null,"简悦不收集用户的数据"),"，因此需要多台设备同步的话（尤其是 高级账户 ）需要选择一个 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/同步"},e.createElement("b",null,"同步盘作为你的配置文件保存服务")),"。"),e.createElement("div",{className:"sublabel"},"2. 内置 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/坚果云"},"坚果云")," 或 ",e.createElement("b",null,"Dropbox")," 作为同步盘服务；同时你也使用 ",e.createElement("b",null,"支持任意网盘")," ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},e.createElement("b",null," 简悦 · 同步助手"))," 的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/自动同步"},"自动同步")," 功能。"),e.createElement("div",{className:"sublabel"},"3. 简悦的诸多功能依赖于同步盘功能，如：",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/每日回顾",target:"_blank"},"每日回顾")," ",e.createElement("a",{href:"https://simpread.pro/api",target:"_blank"},"开发平台"),"，目前仅支持 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/坚果云"},"坚果云")," 或 ",e.createElement("b",null,"Dropbox")," 作为同步盘方案。"),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},e.createElement("div",{className:"h2"},"请选择一个服务作为保存配置文件的同步盘"),e.createElement(w.default,{name:z.Name(E.storage.option.save_at),items:this.props.vault,width:"110px",onChange:function(e){return t.vaultOnChange(e)}}))),e.createElement("div",{className:"label","data-head-level":"h1"},"手动同步"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{className:"version-tips","data-hits":"sync"},e.createElement(u.default,{type:"flat",text:"同步到你的 "+("dropbox"==E.storage.option.save_at?"Dropbox":"坚果云")+" 账户",icon:x.IconPath(E.storage.option.save_at+"_icon"),color:"#fff",backgroundColor:"#1976D2",waves:"md-waves-effect md-waves-button",tooltip:{text:this.state.sync},onClick:function(){return t.sync()}})),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"enforce"},e.createElement("div",{style:{display:"inline-flex",width:"100%"}},e.createElement(u.default,{type:"flat",text:"强制覆盖配置文件到"+("dropbox"==E.storage.option.save_at?" Dropbox":"坚果云"),width:"100%",icon:x.IconPath("export_icon"),color:"#fff",backgroundColor:"#1976D2",waves:"md-waves-effect md-waves-button",tooltip:{text:"将强制覆盖掉云端配置文件，请注意确认！"},onClick:function(){return t.enforce("upload")}}),e.createElement(u.default,{type:"flat",text:"强制从云端下载配置文件",width:"100%",icon:x.IconPath("import_icon"),color:"#fff",backgroundColor:"#1976D2",waves:"md-waves-effect md-waves-button",tooltip:{text:"将强制覆盖掉当前配置文件，请注意确认！"},onClick:function(){return t.enforce("download")}})))),e.createElement("div",{className:"label","data-head-level":"h1"},"同步方式"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{className:"sublabel"},"1. 可更改为 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},e.createElement("b",null,"简悦 · 同步助手"))," 提供的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/自动同步"},"自动同步")," 方案，需 ",e.createElement("a",{target:"_blank",href:"https://simpread.pro/price.html"},e.createElement("b",null,"简悦 · 高级账户"))," 才可开通。"),e.createElement("div",{className:"sublabel"},"2. 仅 ",e.createElement("b",null,"轻量级使用简悦")," 的用户，建议手动同步方案即可。"),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center",height:"36px"}},e.createElement("div",{className:"h2"},"当前使用的同步方案"),e.createElement("div",{dangerouslySetInnerHTML:{__html:E.storage.option.remote.sync?'<div class="auto">自动同步 <i class="fas fa-check-double"></i></div>':'<div class="manual">手动同步 <i class="fas fa-check"></i></div>'}}))),e.createElement("div",{className:"label","data-head-level":"h1"},"同步时间"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{className:"sublabel"},"1. 已保存配置文件到同步盘的最后时间，包括：",e.createElement("b",null,"手动同步")," 或 ",e.createElement("b",null,"自动同步"),"。"),e.createElement("div",{className:"sublabel"},"2. 当选择 ",e.createElement("b",null,"自动同步")," 方式时，此时间意味着保存到本地时的时间。"),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center",height:"36px"}},e.createElement("div",{className:"h2"},"上次同步时间"),e.createElement("div",{dangerouslySetInnerHTML:{__html:E.storage.option.sync?'<div class="time">'+E.storage.option.sync+' <i class="fas fa-history"></i></div>':'<div class="time never">从未同步过 <i class="fas fa-times"></i></div>'}}))),e.createElement("div",{className:"slide"},e.createElement("span",{className:"md-waves-effect toggle",onClick:function(e){return t.slideOnClick(e)}},"简悦 · 同步助手 ",e.createElement("i",{className:"fas fa-caret-down"}))),e.createElement("div",{className:"label","data-head-level":"h1"},"同步助手"),e.createElement("div",{className:"slidegroup sync"},e.createElement("div",{className:"lab",style:{position:"relative"}},e.createElement("div",{style:{flexDirection:"column"}},e.createElement("div",{className:"sublabel",style:{padding:"5px 0"}},e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},e.createElement("b",null,e.createElement("i",{className:"fas fa-desktop"})," 简悦 · 同步助手 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 仅为 ",e.createElement("a",{target:"_blank",href:"https://simpread.pro/price.html"},e.createElement("b",null,e.createElement("i",{className:"fas fa-user"})," 高级账户"))," 推出的一个基于桌面应用的一个辅助性工具，可以实现诸多功能，如："),e.createElement("div",{className:"sublabel"},"1. ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/自动同步"},"自动同步")," 配置文件到本地任意位置，并结合网盘类工具可实现 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=自动同步"},"自动同步")," 功能。"),e.createElement("div",{className:"sublabel"},"2. ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=导出服务"},"导出 HTML 等简悦支持的服务到本机任意位置")," 并支持原生的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=导出服务"},"PDF · Epub")," 导出以及提供 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=邮件服务"},"发送邮件")," 服务等。"),e.createElement("div",{className:"sublabel"},"3. 通过 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=内置解析"},"内置解析")," 可在稍后读正常显示 ",e.createElement("b",null,"动态加载")," 或 ",e.createElement("b",null,"包含 Latex")," 的页面。"),e.createElement("div",{className:"sublabel"},"4. ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/bookmark"},"简悦 · 小书签")," 可方便的将任意页面加入到稍后读，支持 ",e.createElement("b",null,"Safari")," ",e.createElement("b",null,"Firefox")," 等任意浏览器。"),e.createElement("div",{className:"sublabel"},"5. 配合 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/bookmark"},"Alfred workflow")," 可实现在 Alfred 检索稍后读的内容。"))),e.createElement("div",{className:"label","data-head-level":"h1"},"验证"),e.createElement("div",{className:"lab",style:{position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("div",{className:"sublabel"},"使用同步助手的功能前 ",e.createElement("b",null,"需要验证")," ，只有通过后才能使用 ",e.createElement("b",null,"同步助手相应的功能"),"。"),e.createElement("sr-opt-gp",{style:{"margin-top":"20px"}},e.createElement(b.default,{floatingtext:"端口号",placeholder:"请填入简悦 · 同步助手的端口号，虽然支持自定义任意端口号，但建议不要更改。",value:this.state.port,onChange:function(e){return t.portOnChange(e.target.value)}})),e.createElement(u.default,{type:"flat",text:"授权验证简悦 · 同步助手客户端",width:"100%",fontIcon:'<i class="fas fa-desktop"></i>',style:{margin:0},color:"#fff",backgroundColor:"#2196F3",waves:"md-waves-effect md-waves-button",tooltip:{text:"请确保运行【同步助手客户端】后才能验证"},onClick:function(){return t.syncVerify()}})),e.createElement("div",{className:"label","data-head-level":"h1"},"自动同步"),e.createElement("div",{className:"lab",style:{position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("sr-opt-gp",{style:{flexDirection:"column","margin-bottom":"10px"}},e.createElement(v.default,{width:"100%",checked:this.state.autosync,thumbedColor:"#1976D2",trackedColor:"#2196F3",waves:"md-waves-effect",label:"是否启用 「同步助手」 的同步方案？",onChange:function(e){return t.syncRemoteOnChange(e)}}),e.createElement("div",{className:"sublabel"},"关闭此功能意味着使用 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/同步?id=手动同步"},"手动同步")," 方案。"),e.createElement("div",{className:"sublabel"},"1. 启用后，可将简悦的 ",e.createElement("b",null,"配置文件保存到本机的任意位置"),"。"),e.createElement("div",{className:"sublabel"},"2. 可配合 ",e.createElement("b",null,"网盘类工具实现自动同步配置文件")," 功能，详细请看 ",e.createElement("b",null,e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=自动同步"},"说明文档"))," 。"),e.createElement("div",{className:"sublabel"},"3. 通过上方操作 ",e.createElement("b",null,"重置当前配置")," 或 ",e.createElement("b",null,"清除本地全部数据")," 并不能删除此方式保存的文件。"),e.createElement("div",{className:"sublabel"},"4. 此方案为 ",e.createElement("b",null,"测试功能"),"，会存在一定机率的错误情况，详细请看 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=自动同步的注意事项"},e.createElement("b",null,"注意事项")),"。"),e.createElement("div",{className:"sublabel"},"5. 启用此功能后，原本的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/同步?id=手动同步"},e.createElement("b",null,"手动同步"))," 方案失效。")),e.createElement("div",{ref:"remote_sync",style:{display:E.storage.option.remote.sync?"block":"none"}},e.createElement("div",{style:{display:"inline-flex",width:"100%"}},e.createElement(u.default,{type:"flat",text:"通过简悦 · 同步助手覆盖本地配置文件",width:"100%",tooltip:{text:"导出配置文件到简悦 · 同步助手的指定位置"},icon:x.IconPath("export_icon"),style:{margin:"0 6px 0 0"},color:"#fff",backgroundColor:"#2196F3",waves:"md-waves-effect md-waves-button",onClick:function(){return t.syncRemote("set")}}),e.createElement(u.default,{type:"flat",text:"通过简悦 · 同步助手覆盖浏览器配置文件",width:"100%",tooltip:{text:"从简悦 · 同步助手读取并覆盖浏览器配置文件"},icon:x.IconPath("import_icon"),style:{margin:"0 0 0 6px"},color:"#fff",backgroundColor:"#2196F3",waves:"md-waves-effect md-waves-button",onClick:function(){return t.syncRemote("get")}}))))),e.createElement("div",{className:"label","data-head-level":"h1"},"模式切换"),e.createElement("div",{style:{"padding-top":"10px","margin-bottom":"30px"},className:"lab"},e.createElement("div",{className:"sublabel"},"1. 如果你是 ",e.createElement("b",null,"基础账户，且仅轻量级使用简悦")," 的话，可以切换为 ",e.createElement("b",null,"简易模式"),"，详细说明 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/简易模式"},e.createElement("b",null,"请看这里")),"。"),e.createElement("div",{className:"sublabel"},"2. ",e.createElement("b",null,"简易模式")," 在外观上与之前的版本保持一直。"),e.createElement("div",{className:"sublabel"},"3. 此模式仅针对当前选项卡可用，且不保存在配置文件中。"),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center",height:"36px"}},e.createElement("div",{className:"h2"},"当前选择的模式"),e.createElement(w.default,{name:this.props.mode(localStorage.getItem("simpread-option-common")||"enhance"),items:this.props.mode(),width:"110px",onChange:function(e){return t.modeOnChange(e)}}))))}}]),n}(e.Component);D.defaultProps={vault:[{name:"坚果云",value:"jianguo"},{name:"Dropbox",value:"dropbox"}],mode:function(e){var t=[{name:"简易模式",value:"simple"},{name:"高级模式",value:"enhance"}];if(e){var n=t.filter(function(t){return t.value==e});return n[0].name}return t},lock:!0,lock_icon:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="15"><path d="M284.444672 455.110656v-113.77664c0-125.67552 101.879808-227.556352 227.555328-227.556352s227.555328 101.879808 227.555328 227.555328v113.777664h71.11168c23.564288 0 42.665984 19.10272 42.665984 42.667008v369.777664c0 23.564288-19.101696 42.667008-42.665984 42.667008H213.332992c-23.564288 0-42.665984-19.10272-42.665984-42.667008v-369.77664c0-23.565312 19.101696-42.668032 42.665984-42.668032h71.11168z m85.332992 0H654.22336v-113.77664c0-78.547968-63.675392-142.22336-142.222336-142.22336-78.546944 0-142.222336 63.675392-142.222336 142.22336v113.77664z" fill="#f55246"></path></svg>'},D.propTypes={sync:e.PropTypes.func,onLock:e.PropTypes.func,onChange:e.PropTypes.func},t.default=D}).call(t,n(2))},336:function(e,t,n){(function(e,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),d=n(32),p=o(d),u=n(14),m=o(u),f=n(31),h=o(f),b=n(10),g=o(b),v=n(333),k=o(v),w=n(72),y=r(w),x=n(334),E=o(x),C=n(3),_=n(6),A=r(_),N=n(360),S=r(N),j=n(21),O=n(4),z=function(t){function n(){return i(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return l(n,t),c(n,[{key:"componentDidMount",value:function(){this.titleCustomState(this.props.option.export.title.custom),this.mdCustomState(this.props.option.export.markdown.custom),this.mdSingleCustomState(this.props.option.export.markdown.single),this.mdeepCustomState(this.props.option.export.markdeep.custom)}},{key:"onSecretChange",value:function(e){this.props.option.secret=e,this.props.onChange&&this.props.onChange(!0)}},{key:"syncExportOnChange",value:function(e,t){this.props.option.remote.export[t]=e,this.props.onChange&&this.props.onChange(!0)}},{key:"onExportChange",value:function(e,t,n,a,r){this.props.lock||(this.props[t][n][a][r]=e,this.props.onChange&&this.props.onChange(!0),"title"==a&&"custom"==r&&this.titleCustomState(e),"markdown"==a&&"custom"==r&&this.mdCustomState(e),"markdown"==a&&"single"==r&&this.mdSingleCustomState(e),"markdeep"==a&&"custom"==r&&this.mdeepCustomState(e))}},{key:"titleCustomState",value:function(e){$(this.refs.md_title).velocity(e?"slideDown":"slideUp")}},{key:"mdCustomState",value:function(e){$(this.refs.md_custom).velocity(e?"slideDown":"slideUp")}},{key:"mdSingleCustomState",value:function(e){$(this.refs.md_single).velocity(e?"slideDown":"slideUp")}},{key:"mdeepCustomState",value:function(e){$(this.refs.md_markdeep).velocity(e?"slideDown":"slideUp")}},{key:"changeTitleTemplate",value:function(e){this.props.lock||(this.props.option.export.title.template=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changemdTemplate",value:function(e){this.props.lock||(this.props.option.export.markdown.template=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changemdSingleTemplate",value:function(e){this.props.lock||(this.props.option.export.markdown.single_tmp=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changemdeepTemplate",value:function(e){this.props.lock||(this.props.option.export.markdeep.template=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changemdTag",value:function(e){this.props.lock||(this.props.option.export.markdown.tag=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changemdTagSep",value:function(e){this.props.lock||(this.props.option.export.markdown.tag_sep=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changebacklink",value:function(e){this.props.lock||(this.props.option.export.markdown.backlink=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changeIntUrl",value:function(e){this.props.lock||(this.props.option.export.markdown.int_uri=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changeExtUrl",value:function(e){this.props.lock||(this.props.option.export.markdown.ext_uri=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changemdFormat",value:function(e){this.props.lock||(this.props.option.export.markdown.format=e.target.value,this.props.onChange&&this.props.onChange(!1))}},{key:"changeExportCustom",value:function(e){if(!this.props.lock){var t=e.target.value.trim();this.props.option.export.custom=""==t?[]:t.split("\n"),this.props.onChange&&this.props.onChange(!1)}}},{key:"changeWebhooks",value:function(e){if(!this.props.lock){var t=e.target.value.trim();this.props.option.export.webhooks=""==t?[]:t.split("\n"),this.props.onChange&&this.props.onChange(!1)}}},{key:"attachOnChange",value:function(e){this.props.option.remote.export.attach=e,this.props.onChange&&this.props.onChange()}},{key:"newsletter",value:function(){var e=function(e,t,n){y.Render(e,t,n,function(e){"contact"==e.type&&C.browser.runtime.sendMessage(A.Add(A.MESSAGE_ACTION.new_tab,{url:"https://wj.qq.com/s2/6361600/a19b/"}))})};C.browser.runtime.sendMessage(A.Add(A.MESSAGE_ACTION.verify_rule,{type:"now",uid:O.storage.user.uid}),function(t){t?(j.auth.lock=!0,j.auth.lock_status=t.status,e("lock",t.code,j.auth.code[t.status])):O.storage.Safe(function(){S.getSMTP(function(e,t){t?(new a).Render(3,"请在简悦 · 同步助手中填写 SMTP 的相关信息才可使用"):""==O.storage.secret.jianguo.username&&""==O.storage.secret.jianguo.password&&""==O.storage.secret.dropbox.access_token?(new a).Render(2,"使用此功能前需要先授权你的 <b>坚果云</b> 或 <b>Dropbox</b> 账户。"):j.auth.getFinger(function(t){S.setNewsletter(O.storage.user.uid,t,e)})})})})}},{key:"unsubscribe",value:function(){(new a).Render({content:"是否退订每日回顾功能？",action:"退订",cancel:"取消",callback:function(e){"cancel"!=e&&j.auth.getFinger(function(e){S.unsubscribe(O.storage.user.uid,e)})}})}},{key:"onOpenClick",value:function(e){var t=$('<a target="_blank" style="display:none" href='+e+"></a>").appendTo("body");t[0].click(),t.remove()}},{key:"render",value:function(){var t=this,n=function(e){var t=[{name:"默认模板",value:"normal"},{name:"笔记模板",value:"card"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},a=function(e){var n=t.props.attachs.filter(function(t){return t.value==e});return n[0].name};return e.createElement("div",{id:"labs",className:"connect","data-page":"connect",style:{width:"100%"}},e.createElement("div",{className:"label","data-head-level":"h1"},"介绍"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{style:{padding:"10px 0",position:"relative",width:"100%"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("https://wj.qq.com/s2/8043542/c6bd/")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("span",{className:"desc"},e.createElement("b",null,"服务")," 是简悦 2.2.0 新增加的一个标签页，将简悦全部跟导出相关的内容统一转移到这里。包括：",e.createElement("b",null,"授权管理")," ",e.createElement("b",null,"导出的定制化")," ",e.createElement("b",null,"增强导出")," ",e.createElement("b",null,"自动化")," ",e.createElement("b",null,"Webhook")," 等功能，关于这些功能的详细描述可以看 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/服务",target:"_blank"},e.createElement("b",null,"说明文档 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 同时也可以看 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/discussions/categories/服务",target:"_blank"},e.createElement("b",null,"这些教程 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 涵盖了：",e.createElement("b",null,"稍后读的离线读取方式")," ",e.createElement("b",null,"如何快速导入到其它双链笔记")," ",e.createElement("b",null,"如何使用简悦打造自己的知识库")," 等内容。")))),e.createElement("div",{className:"version-tips","data-hits":"auth"},e.createElement("div",{className:"label","data-head-level":"h1"},"授权码"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{className:"version-tips","data-hits":"secret"},e.createElement(p.default,{width:"100%",checked:this.props.option.secret,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:"同步时是否包含授权服务中的授权码？",onChange:function(e){return t.onSecretChange(e)}}),e.createElement("div",{className:"sublabel"},"因 ",e.createElement("b",null,"涉及到安全性"),"，默认（关闭）不保存到配置文件；启用后，请妥善保管你的授权码。"),e.createElement("div",{className:"sublabel"},"当你使用 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/同步",target:"_blank"},e.createElement("b",null,"同步功能")),"，包括：",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/同步?id=手动同步",target:"_blank"},e.createElement("b",null,"手动同步"))," 与 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/同步?id=自动同步",target:"_blank"},e.createElement("b",null,"自动同步")),"，建议开启此功能，否则在新的设备上需要重新授权。")))),e.createElement("div",{className:"version-tips","data-hits":"auth"},e.createElement("div",{className:"label","data-head-level":"h1"},"授权管理"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement(k.default,{lock:this.props.lock,onLock:function(){return t.props.onLock()}}))),e.createElement("div",{className:"label","data-head-level":"h1"},"定制导出"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{style:{position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement(p.default,{width:"100%",checked:this.props.option.export.title.custom,thumbedColor:"#1fab89",trackedColor:"#62d2a2",label:"当导出到本地时，是否开启自定义标题功能？",desc:"此功能仅限使用同步助手导出时生效",onChange:function(e){return t.onExportChange(e,"option","export","title","custom")}}),e.createElement("div",{ref:"md_title",style:{"margin-bottom":"8px"}},e.createElement("sr-opt-gp",{style:{"flex-direction":"column","margin-bottom":"0"}},e.createElement(m.default,{multi:!1,placeholder:"请输入你的模板",value:this.props.option.export.title.template,onChange:function(e){return t.changeTitleTemplate(e)}}),e.createElement("div",{className:"sublabel"},"支持 ",e.createElement("code",null,"id")," ",e.createElement("code",null,"create")," 等定制化内容，更详细的说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=标题",target:"_blank"},"请看这里"),"。"))),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement("div",{className:"h2"},"导出 HTML 或 离线 HTML 使用的模板？"),e.createElement(h.default,{name:n(this.props.option.export.html.layout),width:"180px",items:n(),onChange:function(e,n){return t.onExportChange(e,"option","export","html","layout")}})),e.createElement("div",{className:"sublabel"},"1. ",e.createElement("b",null,"默认模板")," 更适合整体标注的连贯性浏览；",e.createElement("b",null,"笔记模式")," 更注重标注的笔记性；更详细的说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=主题模式",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"2. 此功能仅限： ",e.createElement("b",null,"导出 HTML")," 或 ",e.createElement("b",null,"导出离线 HTML"),"，除此之外即便导出为 HTML 也仍是默认模板。"),e.createElement("div",{style:{display:"flex","flex-direction":"column","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement(p.default,{width:"100%",checked:this.props.option.export.html.toc,thumbedColor:"#1fab89",trackedColor:"#62d2a2",label:"当导出 HTML 或 离线 HTML 时是否包含目录？",desc:"此功能需保证阅读模式开启目录功能才可生效",onChange:function(e){return t.onExportChange(e,"option","export","html","toc")}})),e.createElement("div",{style:{display:"flex","flex-direction":"column","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement(p.default,{width:"100%",checked:this.props.option.export.html.proxy,thumbedColor:"#1fab89",trackedColor:"#62d2a2",label:"当导出 HTML 时是否使用图片代理？",desc:"如：微信订阅号会有防盗链问题，所以在使用 http://localhost:7026/pdf/ 存在无法显示图片的问题，开启此功能后可解决此类问题。",onChange:function(e){return t.onExportChange(e,"option","export","html","proxy")}})),e.createElement("div",{className:"sublabel"},"此功能需要配合 ",e.createElement("b",null,"同步助手 1.0.1")," 才能使用，更详细的说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=图片代理",target:"_blank"},"请看这里"),"。"),e.createElement("div",{style:{"padding-top":"10px"}},e.createElement(p.default,{width:"100%",checked:this.props.option.export.markdown.custom,thumbedColor:"#1fab89",trackedColor:"#62d2a2",label:"是否开启自定义 Markdown 模板功能？",desc:"此功能仅限导出标注时生效",onChange:function(e){return t.onExportChange(e,"option","export","markdown","custom")}}),e.createElement("div",{className:"sublabel"},"开启此功能意味着，以 Markdown 为导出方式的服务均使用 ",e.createElement("b",null,"自定义模式"),"，如：",e.createElement("b",null,"导出 Markdown 到本地 · Notion · Github · Joplin · 语雀 等"),"。"),e.createElement("div",{className:"sublabel"},"关于 ",e.createElement("b",null,"定制化 Markdown 模板")," 的更多细节和参数 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=markdown",target:"_blank"},"请看这里"),"。"),e.createElement("div",{ref:"md_custom",style:{"margin-bottom":"8px;","padding-top":"25px"}},e.createElement("sr-opt-gp",null,e.createElement(m.default,{floatingtext:"模板",multi:!0,rows:8,placeholder:"请输入你的 Markdown 模板",value:this.props.option.export.markdown.template,onChange:function(e){return t.changemdTemplate(e)}})),e.createElement("sr-opt-gp",null,e.createElement(m.default,{
floatingtext:"标签",placeholder:"默认标签形式为 #tag #a/b/c 你可以改为双向链接的方式 [[tag]]",value:this.props.option.export.markdown.tag,onChange:function(e){return t.changemdTag(e)}})),e.createElement("sr-opt-gp",null,e.createElement(m.default,{floatingtext:"多级标签",placeholder:"简悦支持多级标签，默认形式为 #a/b/c 你可以改为其它支持多级标签的结构，如 Obsidian 的 - 形式",value:this.props.option.export.markdown.tag_sep,onChange:function(e){return t.changemdTagSep(e)}})),e.createElement("sr-opt-gp",null,e.createElement(m.default,{floatingtext:"反向链接",placeholder:"简悦支持反向链接，在导出 Markdown 时可选择生成类似 Obsidian 的 [[xxxx]] 形式，并可制定。",value:this.props.option.export.markdown.backlink,onChange:function(e){return t.changebacklink(e)}})),e.createElement("sr-opt-gp",null,e.createElement(m.default,{floatingtext:"内部链接",placeholder:"默认为 http://localhost:7026/pdf/ 当同步助手的端口号未更改时请无需修改默认值",value:this.props.option.export.markdown.int_uri,onChange:function(e){return t.changeIntUrl(e)}})),e.createElement("sr-opt-gp",{style:{"margin-bottom":0}},e.createElement(m.default,{floatingtext:"外部链接",placeholder:"请填入阅读列表的地址，如：https://simpread.pro/@<你的 ID>/reading/",value:this.props.option.export.markdown.ext_uri,onChange:function(e){return t.changeExtUrl(e)}})),e.createElement("sr-opt-gp",{style:{"margin-bottom":0}},e.createElement(p.default,{width:"100%",checked:this.props.option.export.markdown.single,thumbedColor:"#1fab89",trackedColor:"#62d2a2",label:"当导出单条标注时，是否使用单条的定制化模板？",desc:"此功能仅限导出单条标注时生效",onChange:function(e){return t.onExportChange(e,"option","export","markdown","single")}})),e.createElement("div",{ref:"md_single",style:{"margin-bottom":"8px;"}},e.createElement("sr-opt-gp",{style:{"margin-bottom":0}},e.createElement(m.default,{multi:!0,rows:8,placeholder:"请输入你的单条 Markdown 模板",value:this.props.option.export.markdown.single_tmp,onChange:function(e){return t.changemdSingleTemplate(e)}})))),e.createElement("div",null,e.createElement("sr-opt-gp",{style:{"flex-direction":"column","margin-bottom":0,"margin-top":"0"}},e.createElement("div",{className:"h2"},"定制化 Markdown 选项"),e.createElement("div",{className:"sublabel"},"包括： ",e.createElement("code",null,"h1"),"，",e.createElement("code",null,"hr"),"，",e.createElement("code",null,"table")," 标签如何显示等定制化内容，更多细节和参数 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=格式化",target:"_blank"},"请看这里"),"。"),e.createElement(m.default,{multi:!0,rows:4,placeholder:"请输入 Markdown 定制化内容",value:this.props.option.export.markdown.format,onChange:function(e){return t.changemdFormat(e)}}))),e.createElement("sr-opt-gp",{style:{"margin-bottom":0}},e.createElement(p.default,{width:"100%",checked:this.props.option.export.markdeep.custom,thumbedColor:"#1fab89",trackedColor:"#62d2a2",label:"是否启用 Markdeep 的定制化？",onChange:function(e){return t.onExportChange(e,"option","export","markdeep","custom")}})),e.createElement("div",{ref:"md_markdeep",style:{"margin-bottom":"8px;"}},e.createElement("sr-opt-gp",{style:{"flex-direction":"column","margin-bottom":"0"}},e.createElement("div",{className:"sublabel"},"Markdeep 拥有丰富的模板和定制化，你可以在 ",e.createElement("a",{href:"https://casual-effects.com/markdeep",target:"_blank"},"官网")," 查看不同的主题模板，更多细节和参数 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=Markdeep",target:"_blank"},"请看这里"),"。"),e.createElement(m.default,{multi:!0,rows:4,placeholder:"请输入你的 Markdeep 模板",value:this.props.option.export.markdeep.template,onChange:function(e){return t.changemdeepTemplate(e)}}))),e.createElement("sr-opt-gp",{style:{"flex-direction":"column","margin-bottom":"8px;"}},e.createElement("div",{className:"h2"},"自定义导出方式"),e.createElement(m.default,{multi:!0,rows:4,placeholder:"如：markdown 转换为 docx，每行一个",value:(this.props.option.export.custom||[]).join("\n"),onChange:function(e){return t.changeExportCustom(e)}})),e.createElement("div",{className:"sublabel"},"1. 设置此功能可以将 ",e.createElement("code",null,"Markdown")," 或 ",e.createElement("code",null,"HTML")," 转换为 ",e.createElement("code",null,"pandoc")," 支持的任意格式，如 ",e.createElement("code",null,".docx")," 文件。"),e.createElement("div",{className:"sublabel"},"2. 使用此功能的前提：需要安装 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=pandoc",target:"_blank"},"pandoc")," 以及扩展端开启 ",e.createElement("b",null,"同步助手的文本导出格式"),"。"),e.createElement("div",{className:"sublabel"},"3. 只要是 ",e.createElement("code",null,"pandoc")," 支持的格式均可导出，输入的格式仅包括： ",e.createElement("code",null,"Markdown")," 或 ",e.createElement("code",null,"HTML"),"，更多细节和参数 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=自定义导出",target:"_blank"},"请看这里"),"。")))),e.createElement("div",{className:"label","data-head-level":"h1"},"Webhook"),e.createElement("div",{className:"lab"},e.createElement("div",{style:{position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("sr-opt-gp",{style:{"margin-bottom":"8px;"}},e.createElement(m.default,{multi:!0,rows:8,placeholder:"只要支持 webhook 的服务都可以通过此方式导入到指定的服务",value:(this.props.option.export.webhooks||[]).join("\n"),onChange:function(e){return t.changeWebhooks(e)}})),e.createElement("div",{className:"sublabel"},"1. 通过此功能可以结合任意支持 ",e.createElement("code",null,"Webhook")," 的服务，如：",e.createElement("b",null,"ifttt.com")," ",e.createElement("b",null,"zapier.com"),"，实现接入更多的导出服务。"),e.createElement("div",{className:"sublabel"},"2. 导出的内容包括： ",e.createElement("code",null,"Markdown")," ",e.createElement("code",null,"HTML")," ",e.createElement("code",null,"离线 HTML"),"，更多细节和参数 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=Webhook",target:"_blank"},"请看这里"),"。"))),e.createElement("div",{className:"label","data-head-level":"h1"},"增强导出"),e.createElement("div",{style:{position:"relative","padding-top":"10px"},className:"lab"},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("div",{className:"sublabel"},"借助 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},e.createElement("b",null,"简悦 · 同步助手")),"，可以增强 ",e.createElement("b",null,"简悦导出到本地")," 功能，如：",e.createElement("b",null,"保存到任意位置"),"，内置 ",e.createElement("b",null,"Epub · PDF")," 导出等，详细请看 ",e.createElement("b",null,e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=导出服务"},"说明文档"))," 。"),e.createElement("div",{className:"sublabel"},"此功能可以跟 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/定制化导出"},e.createElement("b",null,"定制化导出"))," 配合，将 ",e.createElement("b",null,"简悦强大的导出能力")," 融入到你的 KPM 流程中。"),e.createElement("div",{className:"sublabel"},"部分功能 ",e.createElement("b",null,"需要在本机安装 pandoc")," 才可正常使用，如何安装 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=pandoc",target:"_blank"},e.createElement("b",null,"请看这里")),"。"),e.createElement("div",{className:"sublabel"},"需要在 ",e.createElement("b",null,"简悦 · 同步助手")," 同样开启相应功能后才能使用（同步助手客户端默认已开启）。"),e.createElement(p.default,{width:"100%",checked:this.props.option.remote.export.plain,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:"是否启用简悦 · 同步助手的导出文本格式？",desc:"支持的格式包括：Markdown · HTML · 离线 Markdown · 离线 HTML。",onChange:function(e){return t.syncExportOnChange(e,"plain")}}),e.createElement("div",{className:"sublabel"},"导出到 ",e.createElement("b",null,"本地任意位置"),"，同时辅以 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/定制化导出?id=markdown"},e.createElement("b",null,"定制化导出的 Markdown 模板功能")),"，更可以跟诸如 ",e.createElement("code",null,"Obsidian")," ",e.createElement("code",null,"Logseq")," 联动，细节 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/discussions/1631",target:"_blank"},"请看这里"),"。"),e.createElement(p.default,{width:"100%",checked:this.props.option.remote.export.epub,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:"是否启用简悦 · 同步助手的导出 Epub 功能？",onChange:function(e){return t.syncExportOnChange(e,"epub")}}),e.createElement("div",{className:"sublabel"},"注意：此功能 ",e.createElement("b",null,"需要在本机安装 pandoc")," 才可正常使用，如何安装 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=pandoc",target:"_blank"},e.createElement("b",null,"请看这里")),"。"),e.createElement(p.default,{width:"100%",checked:this.props.option.remote.export.pdf,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:"是否启用简悦 · 同步助手的导出 PDF 功能？",onChange:function(e){return t.syncExportOnChange(e,"pdf")}}),e.createElement("div",{className:"sublabel"},"相比 1.x 调用 Chrome 的导出方式，内置 PDF 输出功能可以实现一次点击即可导出到任意位置，详细 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=pdf",target:"_blank"},"请看这里"),"。"),e.createElement(p.default,{width:"100%",checked:this.props.option.remote.export.kindle,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:"是否启用简悦 · 同步助手的发送到 Kindle 功能？",desc:"支持的附件格式：离线 HTML。",onChange:function(e){return t.syncExportOnChange(e,"kindle")}}),e.createElement("div",{className:"sublabel"},"此功能依赖于 ",e.createElement("b",null,"简悦 · 同步助手中邮件的设置"),"，如何设置 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=发送到Kindle",target:"_blank"},e.createElement("b",null,"请看这里")),"。")),e.createElement("div",{className:"label","data-head-level":"h1"},"自动化"),e.createElement("div",{className:"lab",style:{position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement(E.default,{automated:O.storage.option.automated,onChange:function(){return t.props.onChange(!0)}})),e.createElement("div",{className:"label","data-head-level":"h1"},"开放平台"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{style:{padding:"10px 0",position:"relative",width:"100%"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("https://simpread.pro/developer")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("div",{className:"h2"},"简悦 · 开放平台是 ",e.createElement("b",null,"简悦 2.2")," · 高级账户的一部分功能"),e.createElement("span",{className:"desc"},"包含：",e.createElement("b",null,"API")," · ",e.createElement("b",null,"接入了主流的第三方平台"),"，如 IFTTT，Zapier 等，详细请看 ",e.createElement("a",{href:"https://simpread.pro/api",target:"_blank"},e.createElement("b",null,"开发文档")),"，社区讨论请移步 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/discussions/2079",target:"_blank"},e.createElement("b",null,"这里")),"。"),e.createElement("span",{className:"arrow",style:{right:"12px"}})))),e.createElement("div",{className:"label","data-head-level":"h1"},"发送邮件"),e.createElement("div",{style:{position:"relative","padding-top":"10px"},className:"lab"},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement(p.default,{width:"100%",checked:this.props.option.remote.export.mail,thumbedColor:"#1fab89",trackedColor:"#62d2a2",waves:"md-waves-effect",label:"是否启用简悦 · 同步助手的发送邮件服务？",onChange:function(e){return t.syncExportOnChange(e,"mail")}}),e.createElement("div",{className:"sublabel"},"注意：此功能 ",e.createElement("b",null,"需要在同步助手上配置 SMTP 服务")," 才可正常使用，如何安装 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=邮件服务",target:"_blank"},e.createElement("b",null,"请看这里")),"。"),e.createElement("div",{ref:"mail",style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement("div",{className:"h2"},"请选择发送时是否包含附件？"),e.createElement(h.default,{name:a(this.props.option.remote.export.attach||"none"),items:this.props.attachs,width:"190px",onChange:function(e){return t.attachOnChange(e)}}))),e.createElement("div",{className:"label","data-head-level":"h1"},"每日回顾"),e.createElement("div",{style:{position:"relative","padding-top":"10px"},className:"lab"},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("sr-opt-gp",{style:{flexDirection:"column","margin-bottom":"0"}},e.createElement("div",{className:"sublabel"},e.createElement("a",{href:"http://ksria.com/simpread/docs/#/每日回顾",target:"_blank"},e.createElement("b",null,"简悦 · 每日回顾 ",e.createElement("i",{className:"fas fa-envelope"})))," 会在 ",e.createElement("b",null,"每天晚上 19点10分")," 给你指定的邮箱发送一封二十四小时以内的稍后读列表用作当天回顾。"),e.createElement("div",{className:"sublabel"},e.createElement("b",null,"开启此功能的前提：")),e.createElement("div",{className:"sublabel"},"1. 已开通 ",e.createElement("a",{target:"_blank",href:"https://simpread.pro/price.html"},e.createElement("b",null,"简悦 · 高级账户"))," 的用户。"),e.createElement("div",{className:"sublabel"},"2. 已安装 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},e.createElement("b",null," 简悦 · 同步助手"))," 并设置 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=邮件服务",target:"_blank"},e.createElement("b",null,"邮件服务"))," 的用户。"),e.createElement("div",{className:"sublabel"},"3. 仅支持 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/坚果云"},"坚果云")," 或 ",e.createElement("b",null,"Dropbox")," 作为同步盘方案，包括：",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/同步?id=手动同步"},"手动同步")," 与 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/自动同步"},"自动同步")," 均可支持。"),e.createElement("div",{className:"sublabel"},e.createElement("b",null,"其它注意事项：")),e.createElement("div",{className:"sublabel"},"1. 由于是后台自动发送邮件，所以需要保存你的 ",e.createElement("b",null,"同步盘授权码")," 与 ",e.createElement("b",null,"SMTP 服务密码")," 才可实现此功能。"),e.createElement("div",{className:"sublabel"},"2. 简悦不会明文记录你的 ",e.createElement("b",null,"同步盘授权码")," 与 ",e.createElement("b",null,"SMTP 服务密码"),"，传送到数据库即为加密后的内容。"),e.createElement("div",{className:"sublabel"},"3. 每日回顾的 ",e.createElement("b",null,"数据来源于用户同步的配置文件"),"，请在 ",e.createElement("b",null,"每天晚上 19点10分")," 前确保配置文件为最新的即可。"),e.createElement(g.default,{type:"flat",text:"开通每日回顾",style:{margin:"25px 0 0 0"},color:"#fff",backgroundColor:"#1fab89",waves:"md-waves-effect md-waves-button",tooltip:{text:"开通意味着简悦会加密保存你的坚果云账户/密码以及SMTP 服务密码信息"},onClick:function(){return t.newsletter()}}),e.createElement("div",{className:"unsubscribe",onClick:function(){return t.unsubscribe()}},e.createElement("span",{className:"md-waves-effect"},"退订每日回顾")))),e.createElement("div",{className:"label","data-head-level":"h1"},"辅助管理"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{className:"sublabel",style:{"padding-top":"10px"}},"简悦的包含了众多的导出服务，但并不是每个用户都需要这些服务的，你可以通过下面两个插件来简化导出服务。"),e.createElement("div",{style:{padding:"10px 0",position:"relative",width:"100%"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("https://simpread.ksria.cn/plugins/details/7gcXYY4HAc")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("div",{className:"h2"},"阅读模式浮动面板定制器"),e.createElement("span",{className:"desc"},"为 ",e.createElement("b",null,"阅读模式 → 浮动控制栏 → 动作栏")," 提供定制化服务，适合需要 ",e.createElement("b",null,"精简动作栏")," 的用户。"),e.createElement("span",{className:"arrow",style:{right:"12px"}}))),e.createElement("div",{style:{padding:"10px 0",position:"relative",width:"100%"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("https://simpread.ksria.cn/plugins/details/rsd4UIcDKY")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("div",{className:"h2"},"Assistive Touch - 类似 iOS 的快捷浮动工具栏"),e.createElement("span",{className:"desc"},"思路来源于 iOS Assistive Touch，为用户提供一个比 ",e.createElement("b",null,"浮动控制栏/快捷键")," 更加便捷的快捷键操作面板。"),e.createElement("span",{className:"arrow",style:{right:"12px"}})))),e.createElement("div",{className:"label","data-head-level":"h1"},"新的导出服务"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{style:{padding:"10px 0",position:"relative",width:"100%"},className:"md-waves-effect",onClick:function(){return t.onOpenClick("https://wj.qq.com/s2/8043542/c6bd/")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("div",{className:"h2"},"如果简悦没有包含你需要的服务，请通过投票方式来选出你希望集成的服务"),e.createElement("span",{className:"desc"},"每个新版本发布前我都会根据用户的投票选几个最高票数的服务集成到简悦。"),e.createElement("span",{className:"arrow",style:{right:"12px"}})))))}}]),n}(e.Component);z.defaultProps={option:{},attachs:[{name:"不需要附件",value:"none"},{name:"附件为 PDF",value:"pdf"},{name:"附件为 离线 HTML",value:"ofhtml"}],lock:!0,lock_icon:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="15"><path d="M284.444672 455.110656v-113.77664c0-125.67552 101.879808-227.556352 227.555328-227.556352s227.555328 101.879808 227.555328 227.555328v113.777664h71.11168c23.564288 0 42.665984 19.10272 42.665984 42.667008v369.777664c0 23.564288-19.101696 42.667008-42.665984 42.667008H213.332992c-23.564288 0-42.665984-19.10272-42.665984-42.667008v-369.77664c0-23.565312 19.101696-42.668032 42.665984-42.668032h71.11168z m85.332992 0H654.22336v-113.77664c0-78.547968-63.675392-142.22336-142.222336-142.22336-78.546944 0-142.222336 63.675392-142.222336 142.22336v113.77664z" fill="#f55246"></path></svg>'},z.propTypes={option:e.PropTypes.object,onChange:e.PropTypes.func,onLock:e.PropTypes.func},t.default=z}).call(t,n(2),n(7))},337:function(e,t,n){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(){+new Date%2!=0&&$.ajax({url:"https://static.simp.red/emergency/main.json"}).done(function(e,t,n){e&&!$.isEmptyObject(e)&&s.Verify(e.id,function(t){return t&&o(e)})}).fail(function(e){})}function o(e){$("body").append('<div class="emer"><span class="icon">'+e.icon+'</span><span class="message">'+e.message+'</span><span class="action close">不再显示</span><span class="action repeat">下次提醒</span></div>'),setTimeout(function(){return $(".emer").addClass("active")},200),$(".emer .action.repeat").on("click",function(){$(".emer").removeClass("active")}),$(".emer .action.close").on("click",function(){$(".emer").removeClass("active"),s.Done(e.id)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Render=void 0;var i=n(33),s=a(i);t.Render=r},339:function(e,t,n){(function(e,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if($.isEmptyObject(n))return void(new a).Render({type:2,content:'此版本没有功能一览，你可以直接查看 <a target="_blank" href="http://ksria.com/simpread/welcome/version_'+e+'.html"><b>更新日志</b></a> 来了解当前版本的功能。',state:"holdon"});var r=[n.idx,n.target,n.steps],o=r[0],i=r[1],s=r[2],l=i?i:v.tips[e].target,c=o?o:v.tips[e].idx,d=function(){var t=s?s:v.tips[e].items;return t.map(function(e){return{element:$(v.tips.root(e.id))[0],intro:e.intro}})}(),p=(0,u.default)(),m=function(){p.setOptions({hintButtonLabel:"确认",nextLabel:"下一条 →",prevLabel:"← 上一条",skipLabel:"",doneLabel:"完成",hidePrev:!0,hideNext:!0,steps:d}),p.start()};t&&location.hash!="#"+l?(location.href=location.origin+"/options/options.html#labs",window.dispatchEvent(new CustomEvent(h.MESSAGE_ACTION.turn_tab,{detail:{page:c}})),setTimeout(m,500)):m()}Object.defineProperty(t,"__esModule",{value:!0}),t.Start=t.Guide=void 0;var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),p=n(378),u=o(p),m=n(3),f=n(6),h=r(f),b=n(4),g=n(90),v=r(g),k=function(t){function n(){var e,t,a,r;i(this,n);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return t=a=s(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={tips:[]},r=t,s(a,r)}return l(n,t),d(n,[{key:"onClick",value:function(e,t,n,r){if(n.startsWith("http"))m.browser.runtime.sendMessage(h.Add(h.MESSAGE_ACTION.new_tab,{url:n}));else if(n.startsWith("@"))c(n),this.props.onExit&&this.props.onExit();else if(n.startsWith("!!"))c(n,!0,r),this.props.onExit&&this.props.onExit();else if(2==t)c(b.storage.version),this.props.onExit&&this.props.onExit();else{var o=""==location.hash?"common":location.hash.replace("#","");"about"==o?(new a).Render("此页面没有功能描述。"):(c(o,!1),this.props.onExit&&this.props.onExit())}}},{key:"onLoadingClick",value:function(){var e=this;$(".guide .loading").html('<svg width="20" height="20" viewBox="0 0 38 38" stroke="#26d07c"> <g fill="none" fill-rule="evenodd"> <g transform="translate(1 1)" stroke-width="2"> <circle stroke-opacity=".5" cx="18" cy="18" r="18"/> <path d="M36 18c0-9.94-8.06-18-18-18"> <animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"/> </path> </g> </g></svg>');var t=function(){$.ajax({url:b.storage.help_service+"?="+Math.round(+new Date),method:"GET"}).done(function(t,n,a){t&&0==t.tips.length?$(".guide .loading").html("<span>没有新的消息</span>").css({animation:".1s reverse fadein,235ms cubic-bezier(.4,0,.2,1) popup"}):($(".guide").find("hr").remove(),e.setState({tips:e.state.tips.concat(t.tips)}),$(".guide .loading").remove())}).fail(function(e){$(".guide .loading").html('<i class="fas fa-bug" style="color:#FF5252;"></i><span style="color:#FF5252;">发生了一些错误，请稍后再试。</span>')})};setTimeout(t,1e3)}},{key:"componentWillMount",value:function(){var e=this;b.storage.GetRemote("help_tips",function(t,n){t&&t.tips&&e.setState({tips:t.tips})})}},{key:"componentDidUpdate",value:function(){$("guid-card[id='3']").after("<hr>")}},{key:"componentDidMount",value:function(){$(".guide").scroll(function(e){$(e.target).scrollTop()>35?$(".guide .title").css({"box-shadow":"2px 4px 10px rgba(0,0,0,.2)"}).find("span").text("帮助中心 > 快捷答案").css({"font-weight":"normal",animation:".1s reverse fadein,235ms cubic-bezier(.4,0,.2,1) popup"}):$(".guide .title").removeAttr("style").find("span").text("帮助中心").removeAttr("style")})}},{key:"render",value:function(){var t=this,n=this.state.tips.map(function(n){return e.createElement("guid-card",{id:n.idx,class:"md-waves-effect",onClick:function(e){return t.onClick(e,n.idx,n.url,n.detail)}},e.createElement("guid-card-tips",null,e.createElement("span",{dangerouslySetInnerHTML:{__html:n.icon}}),e.createElement("span",null,n.name)))});return e.createElement("div",{className:"guide"},e.createElement("div",{className:"title"},e.createElement("span",null,"帮助中心")),e.createElement("div",{className:"subtitle"},e.createElement("span",null,"快捷答案")),e.createElement("div",{className:"group"},n),e.createElement("div",{className:"loading",onClick:function(){return t.onLoadingClick()}},e.createElement("span",{className:"md-waves-effect"},"加载更多")))}}]),n}(e.Component);k.defaultProps={tips:[]},k.propsType={tips:e.PropTypes.array},t.Guide=k,t.Start=c}).call(t,n(2),n(7))},340:function(e,t,n){(function(e,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),d=n(161),p=o(d),u=n(3),m=n(6),f=o(m),h=n(64),b=o(h),g=n(32),v=r(g),k=n(14),w=r(k),y=n(31),x=r(y),E=n(158),C=r(E),_=function(t){function n(){var e,t,a,r;i(this,n);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return t=a=s(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={foucs_auto:a.props.focus.auto,read_auto:a.props.read.auto},r=t,s(a,r)}return l(n,t),c(n,[{key:"onChange",value:function(e,t,n,r){return"secret"==n?((new a).Render({type:2,content:"此功能转移到 <b>服务</b> 选项卡里面，3 秒钟后自动切换到此选项卡。",state:"holdon"}),void setTimeout(function(){location.href=location.origin+"/options/options.html#connect",window.dispatchEvent(new CustomEvent(f.MESSAGE_ACTION.turn_tab,{detail:{page:3}}))},3e3)):"save_at"==n?((new a).Render({type:2,content:"此功能转移到 <b>共通</b> 选项卡里面，3 秒钟后自动切换到此选项卡。",state:"holdon"}),void setTimeout(function(){location.href=location.origin+"/options/options.html#common",window.dispatchEvent(new CustomEvent(f.MESSAGE_ACTION.turn_tab,{detail:{page:0}}))},3e3)):"unreader"==n&&["savelocal","savetype"].includes(r)||"annote"==n&&["hypothes"].includes(r)?((new a).Render({type:2,content:'此功能已升级为 <a href="http://ksria.com/simpread/docs/#/自动化" target="_blank"><b>更灵活的自动化方案</b></a> 且转移到 <b>服务</b> 选项卡里面，3 秒钟后自动切换到此选项卡。',state:"holdon"}),void setTimeout(function(){location.href=location.origin+"/options/options.html#connect",window.dispatchEvent(new CustomEvent(f.MESSAGE_ACTION.turn_tab,{detail:{page:3}}))},3e3)):(!r&&(this.props[t][n]=e),r&&(this.props[t][n][r]=e),r&&p.Refresh(this.props[t][n]),"option"==t&&"save_at"==n&&(this.props[t][n]=e?"dropbox":"jianguo"),"option"==t&&"shortcuts"==n&&(this.props[t][n]=e?"disable":"enable"),"option"==t&&"darkmode"==n&&(this.props[t][n]=e?"auto":"manual"),this.props.onChange&&this.props.onChange(!0),"read"==t&&"toc"==n&&this.tocState(e),"read"==t&&"cleanup"==n&&this.cleanupState(e),"option"==t&&"preload"==n&&this.lazyloadState(e),void("annote"==n&&"trigger"==r&&this.annoteState(e)))}},{key:"onAutoChange",value:function(e,t){this.props[t].auto=e,1==e&&"read"==t&&(this.props.focus.auto=!1),1==e&&"focus"==t&&(this.props.read.auto=!1),this.setState({foucs_auto:this.props.focus.auto,read_auto:this.props.read.auto}),this.props.onChange&&this.props.onChange(!0)}},{key:"changeExclusion",value:function(e){this.props.read.exclusion=e.target.value.split("\n"),this.props.onChange&&this.props.onChange(!1)}},{key:"changeWhitelist",value:function(e){this.props.read.whitelist=e.target.value.split("\n"),this.props.onChange&&this.props.onChange(!1)}},{key:"changeLazyload",value:function(e){this.props.option.lazyload=e.target.value.split("\n"),this.props.onChange&&this.props.onChange(!1)}},{key:"tocState",value:function(e){$(this.refs.toc).velocity(e?"slideDown":"slideUp")}},{key:"cleanupState",value:function(e){$(this.refs.cleanup).velocity(e?"slideDown":"slideUp")}},{key:"lazyloadState",value:function(e){$(this.refs.lazyload).velocity(e?"slideDown":"slideUp")}},{key:"annoteState",value:function(e){$(this.refs.annote).velocity(e?"slideDown":"slideUp")}},{key:"blacklist",value:function(e){this.props.option.blacklist=e.target.value.split("\n"),this.props.onChange&&this.props.onChange(!1)}},{key:"changeShortcuts",value:function(e,t){this.props.option[e].shortcuts=t,this.props.onChange&&this.props.onChange(!0)}},{key:"changeAnnoteShortcuts",value:function(e){this.props.option.annote.keyboard=e,this.props.onChange&&this.props.onChange(!0)}},{key:"changeManualShortcuts",value:function(e){this.props.option.manual.shortcuts=e,this.props.onChange&&this.props.onChange(!0)}},{key:"componentDidMount",value:function(){this.tocState(this.props.read.toc),this.cleanupState(void 0==this.props.read.cleanup||this.props.read.cleanup),this.lazyloadState(this.props.option.preload),this.annoteState(this.props.option.annote.trigger),$(".label.collapse").on("click",function(e){$(e.currentTarget).parent().find("text-field").slideToggle(),$(e.currentTarget).find("i").toggleClass("close")}),$(".label.collapse.whitelist").click(),$(".label.collapse.exclusion").click()}},{key:"rssOnChange",value:function(e){this.props.option.remote.rss=e,this.props.onChange&&this.props.onChange(!0)}},{key:"onClick",value:function(e){"custom"==e&&(location.href=location.origin+"/options/custom.html"),"notice"==e&&(location.href=location.origin+"/options/notice.html?is_update="+sessionStorage.getItem("is_update")),"unreader"==e&&(location.href=location.origin+"/unreader/main.html")}},{key:"onOpenClick",value:function(e){u.browser.runtime.sendMessage(f.Add(f.MESSAGE_ACTION.new_tab,{url:e}))}},{key:"render",value:function(){var t=this,n=function(){for(var e=[],t=["#ffeb3b","#a2e9f2","#a1e0ff","#a8ea68","#ffb7da"],n=1;n<=5;n++)e.push({name:n,value:n,style:{root:{"justify-content":"center",padding:0},text:{color:t[n-1],"background-color":t[n-1],width:"20px",height:"20px","line-height":"20px","border-radius":"50px"}}});return e},a=function(){for(var e=[],n=0;n<t.props.annoteStyle.length;n++)e.push({name:t.props.annoteStyle[n],value:n});return e},r=function(e){var t=[];if(t.push({name:"HTML",value:"html"}),t.push({name:"离线 HTML",value:"ofhtml"}),t.push({name:"Markdown",value:"markdown"}),e){var n=t.find(function(t){return t.value==e});return n.name}return t},o=function(e){var t=[{name:"列表模式",value:"list"},{name:"图标模式",value:"icon"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},i=function(e){var t=[{name:"聚焦模式",value:"focus"},{name:"阅读模式",value:"read"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},s=function(e){var t=[{name:"全文（含标注）",value:"page"},{name:"仅标注",value:"annote"},{name:"全文（含标注） + 标注",value:"both"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},l=function(e){var t=[{name:"鼠标移上时显示",value:"mouseover"},{name:"鼠标点击时显示",value:"click"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},c=function(e){var t=[{name:"正常",value:"normal"},{name:"快速（减少动效）",value:"fast"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},d=function(e){var t=[{name:"手动",value:"manual"},{name:"自动",value:"auto"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t},p=function(e){var t=[{name:"不加入",value:"none"},{name:"自动加入",value:"adapter"},{name:"手动确认",value:"confirm"}];if(e){var n=t.find(function(t){return t.value==e});return n.name}return t};return e.createElement("div",{id:"labs","data-page":"labs",style:{width:"100%"}},e.createElement("div",{className:"label","data-head-level":"h1"},"全局"),e.createElement("div",{className:"lab"},e.createElement("div",{className:"version-tips","data-hits":"esc"},e.createElement(v.default,{width:"100%",checked:this.props.option.esc,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否启用 「ESC」 退出方式？",desc:"包括：聚焦模式与阅读模式。",onChange:function(e){return t.onChange(e,"option","esc")}})),e.createElement("div",{className:"version-tips","data-hits":"br_exit"},e.createElement(v.default,{width:"100%",checked:this.props.option.br_exit,
thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"动作栏图标是否改为 「进入/退出 」模式？",onChange:function(e){return t.onChange(e,"option","br_exit")}}),e.createElement("div",{className:"sublabel"},"包括：",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/聚焦模式",target:"_blank"},"聚焦模式")," 和 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/阅读模式",target:"_blank"},"阅读模式"),"，默认（关闭）为 ",e.createElement("b",null,"弹出设定对话框"),"。")),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-hits":"blacklist"},e.createElement("div",null,e.createElement("div",{className:"label small collapse blacklist"},"黑名单 ",e.createElement("i",{className:"arrow fas fa-angle-up"})),e.createElement("div",{className:"sublabel"},"加入其中后，不再启动简悦，有别于 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/FAQ?id=白名单",target:"_blank"},"白名单")," 和 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/FAQ?id=排除列表",target:"_blank"},"排除列表"),"，黑名单则彻底不加载，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/FAQ?id=黑名单",target:"_blank"},"请看这里"),"。"),e.createElement(w.default,{multi:!0,rows:8,placeholder:"每行一个，支持： URL， hostname 等。",value:(this.props.option.blacklist||[]).join("\n"),onChange:function(e){return t.blacklist(e)}}))),e.createElement("div",null,e.createElement("div",{className:"label small collapse whitelist"},"白名单 ",e.createElement("i",{className:"arrow fas fa-angle-up"})),e.createElement("div",{className:"sublabel"},"加入其中后将自动进入 ",e.createElement("b",null,"聚焦模式")," 或 ",e.createElement("b",null,"阅读模式"),"，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/FAQ?id=白名单",target:"_blank"},"请看这里"),"。"),e.createElement(w.default,{multi:!0,rows:8,placeholder:"每行一个，支持： URL, minimatch 等。",value:(this.props.read.whitelist||[]).join("\n"),onChange:function(e){return t.changeWhitelist(e)}})),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement("div",{className:"h2"},"加入白名单后将自动进入？"),e.createElement(x.default,{name:i(this.props.option.auto_mode||"read"),width:"120px",items:i(),onChange:function(e,n){return t.onChange(e,"option","auto_mode")}})),e.createElement("div",{className:"sublabel"}," ",e.createElement("b",null,"自动进入聚焦模式")," 与 ",e.createElement("b",null,"自动进入阅读模式")," 均为关闭状态时，加入到白名单的页面将自动进入哪种模式。"),e.createElement("div",{className:"version-tips","data-hits":"exclusion"},e.createElement("div",{className:"label small collapse exclusion"},"排除列表 ",e.createElement("i",{className:"arrow fas fa-angle-up"})),e.createElement("div",{className:"sublabel"},"加入其中后将不会自动进入 ",e.createElement("b",null,"聚焦模式")," 或 ",e.createElement("b",null,"阅读模式"),"，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/FAQ?id=排除列表",target:"_blank"},"请看这里"),"。"),e.createElement(w.default,{multi:!0,rows:8,placeholder:"每行一个，支持： URL, minimatch 等。",value:(this.props.read.exclusion||[]).join("\n"),onChange:function(e){return t.changeExclusion(e)}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-hits":"secret"},e.createElement(v.default,{width:"100%",checked:this.props.option.secret,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"同步时是否包含授权服务中的授权码？",desc:"包括：导出配置文件到本地，默认（关闭）为不同步；启用后，请妥善保管你的授权码",onChange:function(e){return t.onChange(e,"option","secret")}})),e.createElement("div",{className:"version-tips","data-version":"1.1.3","data-hits":"save_at"},e.createElement(v.default,{width:"100%",checked:"dropbox"==this.props.option.save_at,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"保存配置到 Dropbox ？",desc:"注意：默认（已勾选状态）保存到 Dropbox ；选否后（非勾选状态）保存到 【坚果云】。",onChange:function(e){return t.onChange(e,"option","save_at")}})),e.createElement(v.default,{width:"100%",checked:!!this.props.option.uninstall,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"删除后是否给我反馈？",desc:"建议开启此选项，简悦不会知道你是谁，但你可以帮助简悦变得更好。",onChange:function(e){return t.onChange(e,"option","uninstall")}})),e.createElement("div",{className:"version-tips","data-hits":"menu"},e.createElement("div",{className:"label","data-head-level":"h1"},"右键菜单"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement(v.default,{width:"100%",checked:this.props.option.menu.focus,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「聚焦模式」？",onChange:function(e){return t.onChange(e,"option","menu","focus")}}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.read,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「阅读模式」？",onChange:function(e){return t.onChange(e,"option","menu","read")}}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.link,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「使用阅读模式打开此链接」？",onChange:function(e){return t.onChange(e,"option","menu","link")}}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.manual,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「是否将选中内容生成阅读模式」？",onChange:function(e){return t.onChange(e,"option","menu","manual")}}),e.createElement("div",{className:"dividers"}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.option,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「打开偏好设置」？",onChange:function(e){return t.onChange(e,"option","menu","option")}}),e.createElement("div",{className:"dividers"}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.list,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「打开稍后读」？",onChange:function(e){return t.onChange(e,"option","menu","list")}}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.unrdist,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「加入到稍后读」？",onChange:function(e){return t.onChange(e,"option","menu","unrdist")}}),e.createElement("div",{className:"dividers"}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.whitelist,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「加入白名单」？",onChange:function(e){return t.onChange(e,"option","menu","whitelist")}}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.exclusion,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「加入到排除列表」？",onChange:function(e){return t.onChange(e,"option","menu","exclusion")}}),e.createElement(v.default,{width:"100%",checked:this.props.option.menu.blacklist,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「加入到黑名单」？",onChange:function(e){return t.onChange(e,"option","menu","blacklist")}}),e.createElement("div",{className:"version-tips","data-version":"1.1.4","data-hits":"lazyload"},e.createElement(v.default,{width:"100%",checked:this.props.option.menu.lazyload,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示「加入到延迟加载」？",onChange:function(e){return t.onChange(e,"option","menu","lazyload")}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-version":"1.1.4","data-hits":"urlscheme"},e.createElement(v.default,{width:"100%",checked:this.props.option.urlscheme,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"默认弹出编辑框，取消后意味着直接保存",onChange:function(e){return t.onChange(e,"option","urlscheme")}}),e.createElement("div",{className:"sublabel"},"包括：",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/FAQ?id=黑名单",target:"_blank"},"黑名单")," · ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/右键菜单?id=url编辑器",target:"_blank"},"白名单")," · ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/FAQ?id=排除列表",target:"_blank"},"排除列表")," · ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=延迟加载",target:"_blank"},"延迟加载列表")," 均可使用，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/右键菜单?id=url编辑器",target:"_blank"},"请看这里"),"。")))),e.createElement("div",{className:"label","data-head-level":"h1"},"快捷键"),e.createElement("div",{className:"lab"},e.createElement("div",{className:"sublabel"},"简悦大部分操作均支持快捷键，如：",e.createElement("b",null,"阅读模式"),"，",e.createElement("b",null,"导出服务"),"，",e.createElement("b",null,"标注"),"，",e.createElement("b",null,"稍后读")," 等操作，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/快捷键",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"同时大部分使用场景也支持 ",e.createElement("kbd",null,e.createElement("b",null,"ESC"))," （退出）操作，如 ",e.createElement("b",null,"阅读模式"),"，",e.createElement("b",null,"稍后读")," 等。"),e.createElement("div",{className:"sublabel"},"为 ",e.createElement("b",null,"避免污染全局快捷键"),"，所以进入阅读模式后，需要使用 ",e.createElement("kbd",null,e.createElement("b",null,"s"))," ",e.createElement("kbd",null,e.createElement("b",null,"r"))," 来激活快捷键操作；使用 ",e.createElement("kbd",null,",")," 来打开 ",e.createElement("b",null,"快捷键一览"),"。"),e.createElement("div",{className:"sublabel"},"简悦 2.1.0 开始支持 ",e.createElement("b",null,"浏览器级快捷键操作"),"，",e.createElement("a",{style:{cursor:"pointer"},onClick:function(){return t.onOpenClick("edge://extensions/shortcuts")}},"点击这里 ",e.createElement("i",{className:"fas fa-external-link-square-alt"}))," 打开。"),e.createElement("div",{className:"sublabel"},"简悦 2.2.0 开始支持 ",e.createElement("b",null,"取消快捷键")," 功能，只需要在设置时输入 ",e.createElement("kbd",null,e.createElement("b",null,"-"))," 即可。"),e.createElement(v.default,{width:"100%",checked:"disable"==this.props.option.shortcuts,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"禁用全部快捷键？",onChange:function(e){return t.onChange(e,"option","shortcuts")}}),e.createElement("div",{className:"sublabel"},"使用此方式会禁用全部的快捷键，当你经常使用 ",e.createElement("b",null,"Surfingkeys")," 或 ",e.createElement("b",null,"Vimium")," 这种全局快捷键的扩展时，请使用此方式。"),e.createElement("div",{className:"sublabel"},"否则建议使用 ",e.createElement("kbd",null,e.createElement("b",null,"-")),"。")),e.createElement("div",{className:"label","data-head-level":"h1"},"暗色模式"),e.createElement("div",{className:"lab"},e.createElement("div",{className:"sublabel"},"简悦的 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/聚焦模式",target:"_blank"},"聚焦模式")," ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/阅读模式",target:"_blank"},"阅读模式")," ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/稍后读",target:"_blank"},"稍后读")," 支持暗色模式，其余页面暂时不支持 ",e.createElement("b",null,"暗色模式"),"。"),e.createElement(v.default,{width:"100%",checked:"auto"==this.props.option.darkmode,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"跟随系统的设置？",onChange:function(e){return t.onChange(e,"option","darkmode")}}),e.createElement("div",{className:"sublabel"},"默认会跟随系统进行设置，如果即便在浅色模式下仍使用深色主题的话，建议选否。")),e.createElement("div",{className:"version-tips","data-hits":"focusconfig"},e.createElement("div",{className:"label","data-head-level":"h1"},"聚焦模式"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement(v.default,{width:"100%",checked:this.props.focus.mask,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否启用点击空白（遮罩）退出功能？",onChange:function(e){return t.onChange(e,"focus","mask")}}),e.createElement(v.default,{width:"100%",checked:this.props.focus.controlbar,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否一直显示右下角的控制栏？",onChange:function(e){return t.onChange(e,"focus","controlbar")}}),e.createElement("div",{className:"sublabel"},"关闭意味着 ",e.createElement("b",null,"鼠标移上时才显示"),"。"),e.createElement(v.default,{width:"100%",checked:this.props.focus.highlight,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否启用手动聚焦模式？",onChange:function(e){return t.onChange(e,"focus","highlight")}}),e.createElement("div",{className:"sublabel"},"关闭意味着使用 ",e.createElement("b",null,"自动聚焦模式"),"。"),e.createElement(v.default,{width:"100%",checked:this.state.foucs_auto,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"如果当前页面为适配站点，是否自动进入聚焦模式？",onChange:function(e){return t.onAutoChange(e,"focus","auto")}}),e.createElement("div",{className:"sublabel"},"1. ",e.createElement("b",null,"自动进入聚焦模式")," 与 ",e.createElement("b",null,"自动进入阅读模式")," 互斥，当开启一个后，另外一个则自动失效，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/聚焦模式?id=自动进入",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"2. 此功能只包含 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/站点适配源",target:"_blank"},"已适配的站点"),"，",e.createElement("b",null,"智能识别出正文")," 的页面可通过 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/discussions/1672",target:"_blank"},"此方式实现")," ",e.createElement("b",null,"自动进入"),"。"))),e.createElement("div",{className:"version-tips","data-hits":"readconfig"},e.createElement("div",{className:"label","data-head-level":"h1"},"阅读模式"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{className:"version-tips","data-hits":"progress"},e.createElement(v.default,{width:"100%",checked:this.props.read.progress,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否显示阅读进度？",onChange:function(e){return t.onChange(e,"read","progress")}}),e.createElement("div",{className:"sublabel"},"开启此此功能后会在阅读模式的顶部增加一个阅读进度条，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/阅读进度",target:"_blank"},"请看这里"),"。")),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-hits":"readcontrolbar"},e.createElement(v.default,{width:"100%",checked:this.props.read.controlbar,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否一直显示右下角的控制栏？",onChange:function(e){return t.onChange(e,"read","controlbar")}}),e.createElement("div",{className:"sublabel"},"关闭意味着 ",e.createElement("b",null,"鼠标移上时才显示"),"。")),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-hits":"fap"},e.createElement(v.default,{width:"100%",checked:this.props.read.fap,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否启用高级控制栏面板？",onChange:function(e){return t.onChange(e,"read","fap")}}),e.createElement("div",{className:"sublabel"},"阅读模式控制栏包括两种模式： ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/阅读模式-控制栏?id=浮动控制栏",target:"_blank"},"浮动控制面板")," 和 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/阅读模式-控制栏?id=高级控制面板",target:"_blank"},"高级控制面板"),"，关闭意味着 ",e.createElement("b",null,"使用浮动控制栏"),"。"),e.createElement("div",{className:"sublabel"},"浮动控制面板：仅使用阅读模式，而不使用其它功能的 ",e.createElement("b",null,"轻度用户"),"。"),e.createElement("div",{className:"sublabel"},"高级控制面板：经常使用 ",e.createElement("b",null,"导出功能")," ",e.createElement("b",null,"插件功能")," 的重度用户。")),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement("div",{className:"h2"},"高级控制面板的布局"),e.createElement(x.default,{name:o(this.props.read.fap_layout||"list"),width:"120px",items:o(),onChange:function(e,n){return t.onChange(e,"read","fap_layout")}})),e.createElement("div",{className:"sublabel"},"这是 2.2.0 版增加了一个新功能，为了显示更多的内容且帮助新手用户更好的使用简悦，默认布局更改为 ",e.createElement("b",null,"列表模式"),"。"),e.createElement("div",{className:"sublabel"},"如果你喜欢旧版布局（图标模式），可随时切换，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/阅读模式-控制栏?id=高级控制面板布局",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-hits":"toc"},e.createElement(v.default,{width:"100%",checked:this.props.read.toc,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否自动生成大纲（目录）？",desc:"只整理 h1, h2, h3, h4 的内容为大纲",onChange:function(e){return t.onChange(e,"read","toc")}}),e.createElement("div",{ref:"toc"},e.createElement(v.default,{width:"100%",checked:this.props.read.toc_hide,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"大纲（目录）是否开启「鼠标移动到左上角」自动显示？",onChange:function(e){return t.onChange(e,"read","toc_hide")}}),e.createElement("div",{className:"sublabel"},"关闭意味着 ",e.createElement("b",null,"一直显示"),"。"))),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"version-tips","data-hits":"readauto"},e.createElement(v.default,{width:"100%",checked:this.state.read_auto,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"如果当前页面为适配站点，是否自动进入阅读模式？",onChange:function(e){return t.onAutoChange(e,"read","auto")}}),e.createElement("div",{className:"sublabel"},"1. ",e.createElement("b",null,"自动进入聚焦模式")," 与 ",e.createElement("b",null,"自动进入阅读模式")," 互斥，当开启一个后，另外一个则自动失效。"),e.createElement("div",{className:"sublabel"},"2. 注意：此功能只包含 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/站点适配源",target:"_blank"},"已适配的站点"),"，",e.createElement("b",null,"智能识别出正文")," 的页面可通过 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/discussions/1672",target:"_blank"},"此方式实现")," ",e.createElement("b",null,"自动进入阅读模式"),"。")),e.createElement("div",{className:"dividers"}),e.createElement("div",{className:"sublabel"},e.createElement("b",null,"白名单")," 与 ",e.createElement("b",null,"排除列表")," 功能转移到 ",e.createElement("b",null,"全局")," 里面（可通过右侧菜单栏快速访问）。"))),e.createElement("div",{className:"label","data-head-level":"h1"},"手动框选模式"),e.createElement("div",{className:"lab"},e.createElement("div",{className:"sublabel",style:{"padding-bottom":"25px"}},e.createElement("a",{href:"http://ksria.com/simpread/docs/#/手动框选",target:"_blank"},"手动框选模式")," 专门解决无法通过 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=智能感知",target:"_blank"},"智能识别")," 获取正文的问题，将手动框选后的内容生成 ",e.createElement("b",null,"聚焦模式")," 或 ",e.createElement("b",null,"阅读模式"),"。"),e.createElement(C.default,{shortcuts:this.props.option.manual.shortcuts,changeShortcuts:function(e){return t.changeManualShortcuts(e)}}),e.createElement("div",{className:"version-tips","data-hits":"highlight"},e.createElement(v.default,{width:"100%",checked:this.props.read.highlight,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"手动框选时是否启动二次确认模式？",onChange:function(e){return t.onChange(e,"read","highlight")}}),e.createElement("div",{className:"sublabel"},e.createElement("a",{href:"http://ksria.com/simpread/docs/#/手动框选?id=二次确认",target:"_blank"},"二次确认")," 意味着当手动框选后，可以更加精确的识别框选内容。"),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement("div",{className:"h2"},"手动框选后将进入？"),e.createElement(x.default,{name:i(this.props.option.manual.mode||"read"),width:"120px",items:i(),onChange:function(e,n){return t.onChange(e,"option","manual","mode")}})),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement("div",{className:"h2"},"当手动框选后进入 ",e.createElement("b",null,"聚焦模式")," 或 ",e.createElement("b",null,"阅读模式")," 后执行？"),e.createElement(x.default,{name:p(this.props.option.manual.site||"confirm"),width:"120px",items:p(),onChange:function(e,n){return t.onChange(e,"option","manual","site")}})),e.createElement("div",{className:"sublabel"},"当进入 ",e.createElement("b",null,"聚焦模式")," 或 ",e.createElement("b",null,"阅读模式")," 后，将此页面加入到 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/站点适配源?id=本地适配源",target:"_blank"},"本地适配站点")," 在下次无需重新手动框选。"),e.createElement("div",{className:"sublabel"},"选择 ",e.createElement("b",null,"手动加入")," 模式后会弹出一个提示框，可选择 ",e.createElement("b",null,"加入到本地适配源")," 或 ",e.createElement("b",null,"忽略"),"。"),e.createElement(v.default,{width:"100%",checked:this.props.option.manual.select,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否启用鼠标拖拽选择的内容生成阅读模式？",onChange:function(e){return t.onChange(e,"option","manual","select")}}),e.createElement("div",{className:"sublabel"},"1. 此功能 ",e.createElement("b",null,"仅能生成阅读模式"),"，通过此方式可将有需要的内容（非全文）生成阅读模式，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/手动框选?id=拖拽高亮",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"2. 启用后如果页面没有选择任何内容则自动改为 ",e.createElement("b",null,"手动框选")," 模式。"),e.createElement("div",{className:"sublabel"},"3. 在此方案下生成的 ",e.createElement("b",null,"阅读模式"),"，可使用：",e.createElement("b",null,"导出"),"，",e.createElement("b",null,"插件"),"，",e.createElement("b",null,"标注")," 等功能。"),e.createElement("div",{className:"sublabel"},"4. 在此方案下生成的 ",e.createElement("b",null,"标注"),"，因为非全文抓取，所以标注的显示取决与下次框选的内容是否包含标注。"))),e.createElement("div",{className:"version-tips","data-hits":"pured"},e.createElement("div",{className:"label","data-head-level":"h1","data-head-title":"词法分析引擎"},"词法分析引擎 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎",style:{color:" #4285f4",borderBottom:"2px dotted",fontSize:"10px",fontWeight:"bold",cursor:"pointer"}},"测试版")),e.createElement("div",{style:{"padding-top":"10px",position:"relative"},className:"lab"},e.createElement(v.default,{width:"100%",checked:void 0==this.props.read.cleanup||this.props.read.cleanup,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否启用增强解析模式？",desc:"增强解析模式会对版面重新设计，包括：去除多余空格、优化版面结构等，此功能为测试版，遇到解析失败时，请关闭此功能。",onChange:function(e){return t.onChange(e,"read","cleanup")}}),e.createElement("div",{className:"version-tips","data-hits":"puredpure"},e.createElement("div",{ref:"cleanup"},e.createElement(v.default,{width:"100%",checked:this.props.read.pure,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"纯粹模式",onChange:function(e){return t.onChange(e,"read","pure")}}),e.createElement("div",{className:"sublabel"},"比 ",e.createElement("b",null,"增强解析模式")," 还要彻底优化版本，包括：字形、颜色、字号、代码段等，专治页面及不规范，如：微信订阅号，CSDN 等。"),e.createElement("div",{className:"sublabel"},"如果经常阅读代码的话，请安装 ",e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/plugins/details/klGUASLasg"},"代码段增强")," 包括：高亮，去重，支持 CSDN 等特殊情况的代码段。"))),e.createElement("div",{className:"version-tips","data-version":"1.1.3","data-hits":"preload"},e.createElement(v.default,{width:"100%",checked:this.props.option.preload,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否启用预加载机制？",desc:"1. 简悦的词法分析引擎采用了预加载机制，如果你觉得影响性能的话，请关闭此功能。",onChange:function(e){return t.onChange(e,"option","preload")}}),e.createElement("div",{className:"sublabel"},"2. 关闭此功能后，只有进入阅读模式时才会对页面进行解析，所以经常使用简悦的用户请勿关闭它。"),e.createElement("div",{className:"sublabel"},"3. 此功能的优先级比 ",e.createElement("b",null,"自动进入阅读模式")," 高；当关闭此功能时，自动进入阅读模式将不会工作。")),e.createElement(v.default,{width:"100%",checked:this.props.read.lazyimg,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否预先解析一些采用惰性加载的图片？",onChange:function(e){return t.onChange(e,"read","lazyimg")}}),e.createElement("div",{className:"sublabel"},"1. 某些页面会对图片采取惰性（延迟）加载的方式，当生成阅读模式后，无法有效的对这些图片进行解析。"),e.createElement("div",{className:"sublabel"},"2. 此功能 ",e.createElement("b",null,"专门针对这些惰性图片采取")," 的方式，关于此功能的详细说明 ",e.createElement("a",{target:"_blank",href:"https://github.com/Kenshin/simpread/discussions/2244"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"3. 在一些 ",e.createElement("b",null,"个别极端情况下会出现页面错误")," 的情况，如遇到此情况，请 ",e.createElement("b",null,"关闭此功能"),"，即可解决。"),e.createElement("div",{className:"sublabel"},"4. 关闭此功能后，不会影响正文解析，只会出现 ",e.createElement("b",null,"未适配页面无法正常显示惰性加载图片")," 的问题。"),e.createElement("div",{className:"sublabel"},"5. 如发生此问题后，可以关闭此功能或使用 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/FAQ?id=黑名单"},"黑名单")," 方式，并建议提 ",e.createElement("a",{target:"_blank",href:"https://github.com/Kenshin/simpread/issues/new/choose"},"Issues"),"。"),e.createElement("div",{className:"version-tips","data-version":"1.1.3","data-hits":"lazyload"},e.createElement("div",{ref:"lazyload",style:{"padding-top":"10px","margin-bottom":"8px;"}},e.createElement("div",{className:"label",style:{"margin-bottom":" -15px"}},"延迟加载列表"),e.createElement("div",{className:"sublabel"},"加入其中后的网址将不会启用预加载功能。"),e.createElement("div",{className:"sublabel"},"此功能适合 ",e.createElement("b",null,"经常使用简悦但又性能不够")," 的用户、需要 ",e.createElement("b",null,"动态加载 或 包含 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/issues/534",target:"_blank"},"Mathjax 解析")," 的页面"),"，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=延迟加载",target:"_blank"},"请看这里"),"。"),e.createElement(w.default,{multi:!0,rows:8,placeholder:"每行一个，支持： URL, minimatch 等。",value:(this.props.option.lazyload||[]).join("\n"),onChange:function(e){return t.changeLazyload(e)}}))))),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"annote"},e.createElement("div",{className:"label","data-head-level":"h1"},"标注"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement(v.default,{width:"100%",checked:this.props.option.annote.trigger,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否加载标注模式？",desc:"默认自动加载标注模式，如无此需求，可以关闭此功能，也可通过下面的全局快捷键控制。",onChange:function(e){return t.onChange(e,"option","annote","trigger")}}),e.createElement("div",{style:{"padding-top":"30px",position:"relative"}},e.createElement(C.default,{shortcuts:this.props.option.annote.shortcuts||"M M",changeShortcuts:function(e){return t.changeShortcuts("annote",e)}})),e.createElement("div",{ref:"annote",style:{"margin-bottom":"8px;"}},e.createElement("div",{style:{"padding-top":"10px",position:"relative"}},e.createElement(v.default,{width:"100%",checked:this.props.option.annote.off,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"在进入阅读模式后不开启标注？",desc:"关闭意味着进入阅读模式后，通过鼠标按住并拖拽后出现浮动标注栏。",onChange:function(e){return t.onChange(e,"option","annote","off")}})),e.createElement("div",{style:{"padding-top":"30px",position:"relative"}},e.createElement(C.default,{shortcuts:this.props.option.annote.keyboard||"Q Q",changeShortcuts:function(e){return t.changeAnnoteShortcuts(e)}}),e.createElement("div",{className:"sublabel"},"可以通过快捷键的方式进行标注操作，仅在 ",e.createElement("b",null,"关闭连续标注")," 模式下使用。")),e.createElement("div",{style:{position:"relative"}},e.createElement(v.default,{width:"100%",checked:this.props.option.annote.autosave,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否开启连续标注？",desc:"开启意味着通过鼠标按住拖拽后自动生成标注并保存。",onChange:function(e){return t.onChange(e,"option","annote","autosave")}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},e.createElement("div",{className:"h2"},"自动标注时，默认的标注颜色"),e.createElement(x.default,{name:this.props.option.annote.color,width:"110px",items:n(),onChange:function(e,n){return t.onChange(e,"option","annote","color")}})),e.createElement("div",{style:{position:"relative",display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("div",{className:"h2"},"标注时，默认的标注样式"),e.createElement(x.default,{name:this.props.annoteStyle[this.props.option.annote.style||0],width:"110px",items:a(),onChange:function(e,n){return t.onChange(e,"option","annote","style")}})),e.createElement("div",{style:{position:"relative",display:"flex","flex-direction":"column","margin-bottom":"8px;"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("div",{style:{position:"relative",display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement("div",{className:"h2"},"标注时，标注的排序方式"),e.createElement(x.default,{name:d(this.props.option.annote.order||"manual"),width:"110px",items:d(),onChange:function(e,n){return t.onChange(e,"option","annote","order")}})),e.createElement("div",{className:"sublabel"},"手动：按照添加标注时的顺序，可后期通过拖拽排序。"),e.createElement("div",{className:"sublabel"},"自动：按照标注时上下文的顺序自动排序。")),e.createElement("div",{className:"dividers"}),e.createElement("div",{style:{display:"none","padding-top":"10px",position:"relative"}},e.createElement(v.default,{width:"100%",checked:this.props.option.annote.export,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"导出时是否仅导出标注？",desc:"开启意味着仅导出标注，但当前页面没有标注时会自动导出全文。",onChange:function(e){return t.onChange(e,"option","annote","export")}})),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},e.createElement("div",{className:"h2"},"在标注时，浮动标注栏的显示方式？"),e.createElement(x.default,{name:l(this.props.option.annote.event||"click"),width:"240px",items:l(),onChange:function(e,n){return t.onChange(e,"option","annote","event")}})),e.createElement("div",{className:"sublabel",style:{width:"100%"}},"注意：当选择 ",e.createElement("b",null,"鼠标点击后显示")," 并且在 ",e.createElement("b",null,"已存在标注")," 的时候， ",e.createElement("a",{href:"https://simpread.ksria.cn/plugins/details/VQOZdNET2d",target:"_blank"},"Lightbox( 点击查看大图 )")," 不可用。"),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},e.createElement("div",{className:"h2"},"浮动标注栏可以选择一个默认的导出服务"),e.createElement(x.default,{name:b.findService(this.props.option.annote.exp_name).name,width:"240px",items:b.getAllService(),onChange:function(e,n){return t.onChange(e,"option","annote","exp_name")}})),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},e.createElement("div",{className:"h2"},"浮动标注栏显示/隐藏时的速率（动效）"),e.createElement(x.default,{name:c(this.props.option.annote.effect||"normal"),width:"240px",items:c(),onChange:function(e,n){return t.onChange(e,"option","annote","effect")}})),e.createElement("div",{className:"dividers"}),e.createElement("div",{style:{position:"relative",display:"flex","flex-direction":"column","margin-bottom":"8px;"}},e.createElement("div",{style:{position:"relative",display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},e.createElement("div",{className:"h2"},"导出时可选"),e.createElement(x.default,{name:s(this.props.option.annote.exp_mode||"page"),width:"240px",items:s(),onChange:function(e,n){return t.onChange(e,"option","annote","exp_mode")}})),e.createElement("div",{className:"sublabel"},"1. 当选择 ",e.createElement("b",null,"全文（含标注）")," 时，如果导出为 HTML 的话，当存在标注时，则也会包含标注的。"),e.createElement("div",{className:"sublabel"},"2. 当选择 ",e.createElement("b",null,"全文（含标注）")," 时，如果导出为 Markdown 的话，因 Markdown 对标注结构的支持有限，所以导出为全文。"),e.createElement("div",{className:"sublabel"},"3. 当选择 ",e.createElement("b",null,"仅标注")," 时，如果当前没有标注的话，则会导出 ",e.createElement("b",null,"全文")," 的形式。"),e.createElement("div",{className:"sublabel"},"4. 当选择 ",e.createElement("b",null,"全文 + 标注")," 时，会保存为两个文件，建议配合 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=标题",target:"_blank"},"自定义标题")," 使用。"),e.createElement("div",{className:"sublabel"},"5. 当选择 ",e.createElement("b",null,"全文 + 标注")," 时，仅在导出本地文件时好使，包括：",e.createElement("code",null,"HTML")," ",e.createElement("code",null,"Markdown")," ",e.createElement("code",null,"PDF")," 等，详细 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/标注?id=导出标注",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"6. 当选择 ",e.createElement("b",null,"全文 + 标注")," 时，如果导出为 ",e.createElement("b",null,"复制到剪切板")," 或其它生产力工具，如 ",e.createElement("b",null,"语雀")," 等，则仅导出全文，详细 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/标注?id=导出标注",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"7. 当选择 ",e.createElement("b",null,"全文 + 标注")," 的实际意义请看 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=标题",target:"_blank"},"这个教程"),"。")),e.createElement("div",{style:{position:"relative",display:"flex","flex-direction":"column","justify-content":"center",
"align-items":"center","margin-bottom":"8px;","padding-top":"10px"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("div",{className:"h2"},"引用链接模板"),e.createElement("sr-opt-gp",{style:{"margin-bottom":0}},e.createElement(w.default,{multi:!1,placeholder:"请输入你的当前标注的引用链接模板",value:this.props.option.annote.link,onChange:function(e){return t.onChange(e.target.value,"option","annote","link")}})),e.createElement("div",{className:"sublabel",style:{width:"100%"}},"引用链接模板可定制化，定制化内容依赖于 ",e.createElement("b",null,"定制化 Markdown 模板")," 的更多细节和参数 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/定制化导出?id=markdown",target:"_blank"},"请看这里"),"。")),e.createElement("div",{style:{position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement(v.default,{width:"100%",checked:this.props.option.annote.hypothes,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否同步到你的 Hypothes 账户？",onChange:function(e){return t.onChange(e,"option","annote","hypothes")}}))))),e.createElement("div",{className:"version-tips","data-version":"2.0.0","data-hits":"unreader"},e.createElement("div",{className:"label","data-head-level":"h1"},"稍后读"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("div",{style:{"padding-top":"20px",position:"relative"}},e.createElement(C.default,{shortcuts:this.props.option.unreader.shortcuts,changeShortcuts:function(e){return t.changeShortcuts("unreader",e)}})),e.createElement("div",{style:{"padding-top":"10px",position:"relative"}},e.createElement(v.default,{width:"100%",checked:this.props.option.unreader.sidebar,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"通过快捷键或右键菜单将当前页面加入到稍后读后是否显示标注栏？",onChange:function(e){return t.onChange(e,"option","unreader","sidebar")}})),e.createElement("div",{style:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px",height:"55px"}},e.createElement("div",{className:"h2"},"打开稍后读后的呈现方案，简单模式为原来的稍后读形式"),e.createElement(x.default,{name:"simple"==this.props.option.unreader.show?"简单模式":"高级模式",width:"180px",items:[{name:"简单模式",value:"simple"},{name:"高级模式",value:"senior"}],onChange:function(e,n){return t.onChange(e,"option","unreader","show")}})),e.createElement("div",{className:"md-waves-effect",style:{padding:"10px 0",position:"relative",width:"100%"},onClick:function(){return t.onClick("unreader")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("div",{className:"h2"},"打开稍后读"),e.createElement("span",{className:"arrow",style:{right:"12px",bottom:"9px"}}))),e.createElement("div",{style:{"padding-top":"10px",position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement(v.default,{width:"100%",checked:this.props.option.unreader.search,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"是否在使用搜索引擎时也同步显示你的稍后读检索内容？",onChange:function(e){return t.onChange(e,"option","unreader","search")}}),e.createElement("div",{className:"sublabel"},"目前支持的搜索引擎包括： Google · DuckDuckGo · Bing ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/稍后读?id=搜索引擎匹配",target:"_blank"},"请看这里"),"。")),e.createElement("div",{style:{"padding-top":"10px",position:"relative"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement(v.default,{width:"100%",checked:this.props.option.unreader.savelocal,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"在加入稍后读后是否自动保存到本地？",onChange:function(e){return t.onChange(e,"option","unreader","savelocal")}}),e.createElement("div",{className:"sublabel"},"此方式需要开启 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync",target:"_blank"},"简悦 · 同步助手")," 的 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync?id=导出服务",target:"_blank"},"导出服务")," 才可使用。")),e.createElement("div",{style:{position:"relative",display:"flex","flex-direction":"row","justify-content":"center","align-items":"center","padding-top":"10px"}},this.props.lock&&e.createElement("sr-unreader-lock",{dangerouslySetInnerHTML:{__html:this.props.lock_icon},onClick:function(){return t.props.onLock()}}),e.createElement("div",{className:"h2"},"开启自动保存到本地，自动保存的类型"),e.createElement(x.default,{name:r(this.props.option.unreader.savetype||"html"),width:"180px",items:r(),onChange:function(e,n){return t.onChange(e,"option","unreader","savetype")}})))),e.createElement("div",{className:"version-tips","data-hits":"custom"},e.createElement("div",{className:"label","data-head-level":"h1"},"自定义样式"),e.createElement("div",{style:{"padding-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onClick("custom")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("div",{className:"h2"},"增强「中文阅读体验」设置"),e.createElement("span",{className:"desc"},"包括：标题、描述、正文的字间距、行间距、首行缩进等及自定义 CSS，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/自定义样式",target:"_blank"},"请看这里"),"。"),e.createElement("span",{className:"arrow"})))),e.createElement("div",{className:"label","data-head-level":"h1"},"RSS阅读器内嵌"),e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement("sr-opt-gp",{style:{flexDirection:"column"}},e.createElement(v.default,{width:"100%",checked:this.props.option.remote.rss,thumbedColor:"#3F51B5",trackedColor:"#7986CB",waves:"md-waves-effect",label:"是否启用 「内嵌到 RSS 阅读器」 中？",onChange:function(e){return t.rssOnChange(e)}}),e.createElement("div",{className:"sublabel"},"此功能需要开启并运行 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Sync",target:"_blank"},e.createElement("b",null,"简悦 · 同步助手"))," 后才能使用。"),e.createElement("div",{className:"sublabel"},"1. 启用后，可直接在 RSS 阅读器中使用简悦的阅读模式，详细说明 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/RSSReader",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"2. 简悦会抓取当前页面的全部内容，并生成简悦的阅读模式，专门针对 ",e.createElement("b",null,"某些 RSS 源并未全文输出")," 的情况。"),e.createElement("div",{className:"sublabel"},"3. 支持的 RSS 阅读器：",e.createElement("b",null,"feedly.com")," ",e.createElement("b",null,"inoreader.com")," ",e.createElement("b",null,"feedbin.com"),"。"),e.createElement("div",{className:"sublabel"},"4. 在抓取时存在 ",e.createElement("b",null,"一定机率的失败"),"，尤其是动态页面，如存在此情况，请尝试多次抓取。"),e.createElement("div",{className:"sublabel"},"5. 与其它类似功能相比，简悦可抓取：动态加载页面，惰性加载图片，Latex 页面等特殊情况，解决方案 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/discussions/1507",target:"_blank"},"请看这里"),"。"),e.createElement("div",{className:"sublabel"},"6. 在 Feedly / Inoreader 中如何方便的使用 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/Bookmarklet",target:"_blank"},"简悦 · 小书签")," 提供的 ",e.createElement("b",null,"✂ 简悦的一键收藏"),"，详细说明 ",e.createElement("a",{href:"https://github.com/Kenshin/simpread/discussions/1559",target:"_blank"},"请看这里"),"。"))),e.createElement("div",{className:"version-tips","data-version":"1.1.3","data-hits":"notice"},e.createElement("div",{className:"label","data-head-level":"h1"},"消息中心"),e.createElement("div",{style:{"padding-top":"10px",position:"relative"},className:"lab"},e.createElement(v.default,{width:"100%",checked:this.props.option.notice,thumbedColor:"#3F51B5",trackedColor:"#7986CB",label:"当没有未读信息时，是否显示右下角提示框？",desc:"关闭后，当没有新的未读信息时，隐藏未读提示；当有新的消息时，仍会在右下角显示未读提示。",onChange:function(e){return t.onChange(e,"option","notice")}}),e.createElement("div",{style:{padding:"10px 0",position:"relative",width:"100%"},className:"md-waves-effect",onClick:function(){return t.onClick("notice")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("div",{className:"h2"},"查看全部消息"),e.createElement("span",{className:"desc"},"简悦会不定期发送一些消息，包括：新的插件上线、新的适配站点上线、修复 Bug 等。"),e.createElement("span",{className:"arrow",style:{right:"12px"}}))))))}}]),n}(e.Component);_.defaultProps={option:{},read:{},focus:{},annoteStyle:["默认样式","笔触","半下划线","下划线"],lock:!0,lock_icon:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="15"><path d="M284.444672 455.110656v-113.77664c0-125.67552 101.879808-227.556352 227.555328-227.556352s227.555328 101.879808 227.555328 227.555328v113.777664h71.11168c23.564288 0 42.665984 19.10272 42.665984 42.667008v369.777664c0 23.564288-19.101696 42.667008-42.665984 42.667008H213.332992c-23.564288 0-42.665984-19.10272-42.665984-42.667008v-369.77664c0-23.565312 19.101696-42.668032 42.665984-42.668032h71.11168z m85.332992 0H654.22336v-113.77664c0-78.547968-63.675392-142.22336-142.222336-142.22336-78.546944 0-142.222336 63.675392-142.222336 142.22336v113.77664z" fill="#f55246"></path></svg>'},_.propTypes={option:e.PropTypes.object,read:e.PropTypes.object,focus:e.PropTypes.object,onChange:e.PropTypes.func,onLock:e.PropTypes.func},t.default=_}).call(t,n(2),n(7))},342:function(e,t,n){(function(e,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),d=n(4),p=n(74),u=o(p),m=n(9),f=o(m),h=n(3),b=n(6),g=o(b),v=n(24),k=o(v),w=n(10),y=r(w),x=function(t){function n(){return i(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return l(n,t),c(n,[{key:"update",value:function(){var e=this;u.Install(this.props.plugin.id,void 0,function(t){t?e.props.plugin.version!=t.version?(d.storage.plugins[e.props.plugin.id]=t,e.props.onChange("update")):(new a).Render("当前插件为最新版，无需更新。"):(new a).Render(2,"更新失败，请稍后再试。")})}},{key:"delete",value:function(){var e=this;(new a).Render({mode:"snackbar",content:"是否删除当前插件？",action:"确认",cancel:"取消",callback:function(t){"cancel"!=t&&(delete d.storage.plugins[e.props.plugin.id],d.storage.option.plugins=Object.keys(d.storage.plugins),e.props.onChange("delete"))}})}},{key:"enable",value:function(){this.props.plugin.enable=void 0!=this.props.plugin.enable&&!this.props.plugin.enable,this.props.onChange("enable")}},{key:"addmore",value:function(){h.browser.runtime.sendMessage(g.Add(g.MESSAGE_ACTION.new_tab,{url:"https://simpread.ksria.cn/plugins/details/"+this.props.plugin.id}))}},{key:"render",value:function(){var t=this,n=!(void 0!=this.props.plugin.enable&&!this.props.plugin.enable);return e.createElement("card",null,e.createElement("card-header",{style:{backgroundColor:this.props.plugin.icon.bgColor}},e.createElement("icon",{style:{color:this.props.plugin.icon.color},dangerouslySetInnerHTML:{__html:this.props.plugin.icon.type}})),e.createElement("card-content",null,e.createElement("desc",null,"by ",this.props.plugin.user.name),e.createElement("note",null,this.props.plugin.name)),e.createElement("card-footer",null,e.createElement(y.default,{shape:"circle",type:"flat",color:"#c3c6c7",hoverColor:"rgba( 153, 153, 153, .1)",tooltip:{text:1==n?"禁用当前插件":"启用当前插件"},fontIcon:'<i class="fas fa-eye'+(n?"":"-slash")+'"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.enable()}}),e.createElement(y.default,{shape:"circle",type:"flat",color:"#c3c6c7",hoverColor:"rgba( 153, 153, 153, .1)",tooltip:{text:"删除当前插件"},fontIcon:'<i class="fas fa-trash-alt"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.delete()}}),e.createElement(y.default,{shape:"circle",type:"flat",color:"#c3c6c7",hoverColor:"rgba( 153, 153, 153, .1)",tooltip:{text:"更新当前插件到最新版本"},fontIcon:'<i class="fas fa-cloud"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.update()}}),e.createElement(y.default,{shape:"circle",type:"flat",color:"#c3c6c7",hoverColor:"rgba( 153, 153, 153, .1)",tooltip:{text:"查看当前插件的详细信息"},fontIcon:'<i class="fas fa-ellipsis-h"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.addmore()}})))}}]),n}(e.Component);x.defaultProps={plugin:{}},x.propTypes={plugin:e.PropTypes.object};var E=function(t){function n(){return i(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return l(n,t),c(n,[{key:"render",value:function(){var t=this,n=this.props.plugins.length>0?this.props.plugins.map(function(n,a){return e.createElement(x,{plugin:n,onChange:function(e){return t.props.onChange(e)}})}):e.createElement("card-empty",null,e.createElement("a",{href:"https://simpread.ksria.cn/plugins",target:"_blank"},"没有任何插件，打开 ",e.createElement("b",null,"插件中心 ",e.createElement("i",{className:"fas fa-external-link-square-alt"}))," 添加"));return e.createElement("cards",null,n)}}]),n}(e.Component);E.defaultProps={plugins:[]},E.propTypes={plugins:e.PropTypes.array,onChange:e.PropTypes.func};var C=function(t){function n(){var e,t,a,r;i(this,n);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return t=a=s(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={plugins:[]},r=t,s(a,r)}return l(n,t),c(n,[{key:"writecb",value:function(){k.SendMessage("option",!0)}},{key:"install",value:function(){var e=this,t=decodeURIComponent(location.hash).replace("#plugins?install=","");u.Install(t,void 0,function(n){n?!function(){var t=function(){d.storage.plugins[n.id]=n,d.storage.Plugins(function(e){(new a).Render("当前插件已安装成功，2 秒后自动刷新当前页面。"),setTimeout(function(){location.href=location.origin+location.pathname+"#plugins",location.reload()},2e3)},d.storage.plugins)};d.storage.option.plugins.includes(n.id)?d.storage.plugins[n.id].version!=n.version?(new a).Render({content:"本地版本与安装版本不一致，是否安装新版本？",action:"安装",cancel:"取消",callback:function(e){"action"==e&&t()}}):(new a).Render({content:"本地版本与安装版本一致，是否重新安装？",action:"安装",cancel:"取消",callback:function(e){"action"==e&&t()}}):(t(),d.storage.option.plugins.push(n.id),d.storage.Write(e.writecb))}():(new a).Render(2,t+" 获取失败，请稍后再试。")})}},{key:"clear",value:function(){var e=this;(new a).Render({mode:"snackbar",content:"是否清除本地全部插件？",action:"是的",cancel:"取消",callback:function(t){"action"==t&&(d.storage.option.plugins=[],d.storage.Write(e.writecb),d.storage.Plugins(function(){(new a).Render("snackbar","清除成功，此页面需刷新后才能生效！","刷新 ",function(){location.href=location.origin+location.pathname+"#plugins",location.reload()})},{}))}})}},{key:"addmore",value:function(){h.browser.runtime.sendMessage(g.Add(g.MESSAGE_ACTION.new_tab,{url:"https://simpread.ksria.cn/plugins"}))}},{key:"update",value:function(){var e=this,t=!1,n=0;d.storage.option.plugins.forEach(function(e){u.Install(e,void 0,function(o){o||(new a).Render(2,e+" 获取失败，请稍后再试。"),n++,d.storage.plugins[e].version!=o.version&&(d.storage.plugins[o.id]=o,t=!0),n==d.storage.option.plugins.length&&r()})});var r=function(){t?d.storage.Plugins(function(t){(new a).Render("本地插件已全部更新完毕。"),e.setState({plugins:Object.values(d.storage.plugins)})},d.storage.plugins):(new a).Render("无任何可用更新。")}}},{key:"import",value:function(){var e=this,t={};if(0==d.storage.option.plugins.length)return void(new a).Render("当前配置文件没有任何插件。");(new a).Render({mode:"snackbar",content:"导入意味着从配置文件覆盖当前的插件！",action:"确认",cancel:"取消",callback:function(e){if("cancel"!=e){var r=0;d.storage.option.plugins.forEach(function(e){u.Install(e,void 0,function(o){o?t[o.id]=o:(new a).Render(2,e+" 获取失败，请稍后再试。"),r++,r==d.storage.option.plugins.length&&n()})})}}});var n=function(){d.storage.Plugins(function(t){d.storage.Write(function(){(new a).Render("已从配置文件导入完毕。"),e.setState({plugins:Object.values(d.storage.plugins)})})},t)}}},{key:"onChange",value:function(e){var t=this;d.storage.Write(this.writecb),d.storage.Plugins(function(){"update"==e&&(new a).Render("当前插件已更新成功。"),"delete"==e&&(new a).Render("当前插件已删除成功。"),"enable"==e&&(new a).Render("当前插件已更改成功。"),t.setState({plugins:Object.values(d.storage.plugins)})},d.storage.plugins)}},{key:"componentWillMount",value:function(){var e=this;$("head").append('<link rel="stylesheet" class="simpread-fs-style" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/regular.min.css" />'),$("head").append('<link rel="stylesheet" class="simpread-fs-style" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/solid.min.css" />'),$("head").append('<link rel="stylesheet" class="simpread-fs-style" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/brands.min.css" />'),$("head").append('<link rel="stylesheet" class="simpread-fs-style" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/fontawesome.min.css" />'),d.storage.Plugins(function(){decodeURIComponent(location.href).includes("#plugins?install=")&&e.install(),e.setState({plugins:Object.values(d.storage.plugins)})})}},{key:"render",value:function(){var t=this;return e.createElement("div",{id:"labs","data-page":"plugins",style:{width:"100%",overflow:"hidden"}},e.createElement("div",{className:"label","data-head-level":"h1"},"管理"),e.createElement("div",{className:"lab"},e.createElement("div",{style:{display:"inline-flex",width:"100%"}},e.createElement("div",{className:"version-tips","data-hits":"pluginconfig",style:{display:"inline-flex",width:"50%"}},e.createElement(y.default,{type:"flat",text:"从配置文件导入插件",width:"100%",tooltip:{text:"注意：本操作并不能更新本地插件。"},icon:f.IconPath("import_icon"),color:"#fff",backgroundColor:"#00adb5",waves:"md-waves-effect md-waves-button",onClick:function(){return t.import()}})),e.createElement("div",{className:"version-tips","data-hits":"pluginsite",style:{display:"inline-flex",width:"50%"}},e.createElement(y.default,{type:"flat",text:"查看并获取更多的插件",width:"100%",fontIcon:'<i class="fas fa-external-link-square-alt"></i>',color:"#fff",backgroundColor:"#00adb5",waves:"md-waves-effect md-waves-button",onClick:function(){return t.addmore()}}))),e.createElement("div",{style:{display:"inline-flex",width:"100%"}},e.createElement("div",{className:"version-tips","data-hits":"pluginupdate",style:{display:"inline-flex",width:"50%"}},e.createElement(y.default,{type:"flat",text:"更新本地全部插件",width:"100%",icon:f.IconPath("update_icon"),color:"#fff",backgroundColor:"#FF5252",waves:"md-waves-effect md-waves-button",onClick:function(){return t.update()}})),e.createElement("div",{className:"version-tips","data-hits":"pluginclear",style:{display:"inline-flex",width:"50%"}},e.createElement(y.default,{type:"flat",text:"清除本地全部插件",width:"100%",icon:f.IconPath("clear_icon"),color:"#fff",backgroundColor:"#757575",waves:"md-waves-effect md-waves-button",onClick:function(){return t.clear()}})))),e.createElement("div",{className:"label","data-head-level":"h1"},e.createElement("span",null,"已安装 ",0==this.state.plugins.length?"":this.state.plugins.length+" 个插件 "),this.state.plugins.length>5&&e.createElement("a",{target:"_blank",style:{color:" #00adb5",borderBottom:"2px dotted",fontSize:"10px",fontWeight:"bold"}},"过多的插件会使进入阅读模式变慢，建议不要超过 6 个")),e.createElement("div",{className:"version-tips","data-hits":"pluginmange"},e.createElement("div",{style:{"padding-top":"10px"},className:"lab"},e.createElement(E,{plugins:this.state.plugins,onChange:function(e){return t.onChange(e)}}))))}}]),n}(e.Component);t.default=C}).call(t,n(2),n(7))},343:function(e,t,n){(function(e,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),u=n(4),m=n(3),f=n(6),h=o(f),b=n(24),g=o(b),v=n(9),k=o(v),w=n(14),y=r(w),x=n(10),E=r(x),C=function(t){function n(){return s(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return c(n,t),p(n,[{key:"update",value:function(){m.browser.runtime.sendMessage(h.Add(h.MESSAGE_ACTION.new_tab,{url:"https://simpread.ksria.cn/sites/details/"+this.props.info.domain+"?type=update"}))}},{key:"delete",value:function(){var e=this;(new a).Render({mode:"snackbar",content:"是否删除当前站点？",action:"确认",cancel:"取消",callback:function(t){"cancel"!=t&&u.storage.pr.Deletesite("person",e.props.url,function(t){t==-1&&(new a).Render("当前站点已删除，请勿重复提交。"),t!=-1&&u.storage.Writesite(u.storage.pr.sites,function(){g.SendMessage("site",!0),(new a).Render("删除成功。"),e.props.onChange("delete")})})}})}},{key:"addmore",value:function(){m.browser.runtime.sendMessage(h.Add(h.MESSAGE_ACTION.new_tab,{url:"https://simpread.ksria.cn/sites/details/"+this.props.info.domain}))}},{key:"render",value:function(){var t=this;return e.createElement("card",null,e.createElement("card-header",{style:{backgroundColor:this.props.info.bgColor}},e.createElement("title",{style:{color:this.props.info.color}},this.props.info.title)),e.createElement("card-footer",null,e.createElement(E.default,{shape:"circle",type:"flat",color:"#c3c6c7",hoverColor:"rgba( 153, 153, 153, .1)",tooltip:{text:"删除当前站点"},fontIcon:'<i class="fas fa-trash-alt"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.delete()}}),e.createElement(E.default,{shape:"circle",type:"flat",color:"#c3c6c7",hoverColor:"rgba( 153, 153, 153, .1)",tooltip:{text:"更新当前站点到最新版本"},fontIcon:'<i class="fas fa-cloud"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.update()}}),e.createElement(E.default,{shape:"circle",type:"flat",color:"#c3c6c7",hoverColor:"rgba( 153, 153, 153, .1)",tooltip:{text:"查看当前站点的详细信息"},fontIcon:'<i class="fas fa-ellipsis-h"></i>',waves:"md-waves-effect md-waves-button",onClick:function(){return t.addmore()}})))}}]),n}(e.Component);C.defaultProps={info:{}},C.propTypes={info:e.PropTypes.object};var _=function(t){function n(){var e,t,a,r;s(this,n);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return t=a=l(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(i))),a.state={sites:u.storage.pr.sites.person},r=t,l(a,r)}return c(n,t),p(n,[{key:"onChange",value:function(e){this.setState({sites:u.storage.pr.sites.person})}},{key:"render",value:function(){var t=this,n=this.state.sites&&this.state.sites.length>0?this.state.sites.map(function(n){return e.createElement(C,{url:n[0],info:n[1].info,onChange:function(e){return t.onChange(e)}})}):e.createElement("card-empty",null,e.createElement("a",{href:"https://simpread.ksria.cn/sites",target:"_blank"},"没有任何站点，点击打开「站点集市」添加。"));return e.createElement("cards",null,n)}}]),n}(e.Component);_.propTypes={onChange:e.PropTypes.func};var A=function(t){function n(){return s(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return c(n,t),p(n,[{key:"newsites",value:function(){var e=(new a).Render({content:"数据同步中，请稍等...",state:"loading"});u.storage.GetRemote("remote",function(t,n){e.complete(),n?(new a).Render(3,"同步时发生了一些问题，并不会影响本地配置文件，请稍后再试！"):!function(){var e=u.storage.pr.Addsites(t);u.storage.Writesite(u.storage.pr.sites,function(){g.SendMessage("site",!0),0==e?(new a).Render("适配列表已同步至最新版本。"):(new a).Render(0,"适配列表已同步成功，本次新增 "+e+" 个站点，2 秒后自动自动刷新。"),e>0&&setTimeout(function(){return location.reload()},2e3)})}()})}},{key:"onClick",value:function(e){"sitemgr"==e&&(location.href=location.origin+"/options/sitemgr.html")}},{key:"changeOrigins",value:function(){this.props.option.origins=event.target.value.split("\n"),u.storage.pr.origins=this.props.option.origins,this.props.onChange&&this.props.onChange(!1)}},{key:"origins",value:function(e){var t=this;"import"==e?(new a).Render("snackbar","导入后会覆盖掉原来的第三方适配列表，请问是否覆盖？","确认",function(){var e=t.props.option.origins.filter(function(e){return""!=e.trim()&&e.trim().startsWith("http")&&e.trim().endsWith(".json")}),n=e.length,r=0,o=[],s=0;e.length!=t.props.option.origins.length&&(t.props.option.origins=[].concat(i(e)),t.props.onChange&&t.props.onChange(!1),$(t.refs.origins).find("textarea").val(t.props.option.origins.join("\n")),(new a).Render("已剔除掉不符合规范的第三方源。")),t.props.option.origins.forEach(function(e){u.storage.GetRemote(e,function(i,l){r++,i&&i.sites.length>0?(s++,o=o.concat(u.storage.pr.Formatsites(i))):(new a).Render("导入失败 "+e),r==n&&(o.length>0&&(u.storage.websites.custom=u.storage.pr.Addorigins(o)),(new a).Render("已完成导入，本次共计："+s+" 个站点， "+o.length+" 条数据。"),t.props.onChange&&t.props.onChange(!1))})})}):"clear"==e&&(new a).Render("snackbar","只能清除第三方源的适配站点，请问是否清除？","确认",function(){(new a).Render("已完成清除，共计："+u.storage.pr.Clearorigins()+" 条数据。"),u.storage.websites.custom=u.storage.pr.sites.custom,t.props.onChange&&t.props.onChange(!1)})}},{key:"onChange",value:function(e){}},{key:"clear",value:function(){(new a).Render({mode:"snackbar",content:"是否清除「站点集市」的全部站点？",action:"是的",cancel:"取消",callback:function(e){"action"==e&&(u.storage.pr.sites.person=[],u.storage.Writesite(u.storage.pr.sites,function(){g.SendMessage("site",!0),(new a).Render("已清除成功，2 秒后自动刷新当前页面。"),setTimeout(function(){location.href=location.origin+location.pathname+"#sites",location.reload()},2e3)}))}})}},{key:"addmore",value:function(){m.browser.runtime.sendMessage(h.Add(h.MESSAGE_ACTION.new_tab,{url:"https://simpread.ksria.cn/sites"}))}},{key:"install",value:function(){try{!function(){var e=decodeURIComponent(location.hash).replace("#sites?install=",""),t=e.split("?site="),n=(t[0],JSON.parse(decodeURI(t[1]))),r=u.storage.pr.sites.person.filter(function(e){return e[1].info.id==n.id}),o=function(){var e=r.length>0?r[0][0]:n.site.url,t=d({},n.site);delete n.user,delete n.site,delete n.view,delete n.download,delete n.href,t.info=n,u.storage.pr.Updatesite("person",e,[e,u.storage.pr.Cleansite(t)]),u.storage.Writesite(u.storage.pr.sites,function(){g.SendMessage("site",!0),(new a).Render("当前站点已安装成功，2 秒后自动刷新当前页面。"),setTimeout(function(){location.href=location.origin+location.pathname+"#sites",location.reload()},2e3)})};0==r.length?o():n.create!=r[0][1].info.create?(new a).Render({content:"本地版本与安装版本不一致，是否安装新版本？",action:"安装",cancel:"取消",callback:function(e){"action"==e&&o()}}):(new a).Render({content:"是否重新当前站点安装？",action:"安装",cancel:"取消",callback:function(e){"action"==e&&o()}})}()}catch(e){(new a).Render(2,"获取失败，请稍后再试。")}}},{key:"update",value:function(){var e=decodeURIComponent(location.hash).replace("#sites?update=",""),t=JSON.parse(e),n=t.target,r=u.storage.pr.Cleansite(d({},t));r.url=t.url,$.ajax({url:u.storage.service+"/sites/service/query",method:"POST",data:{type:n,site:r}}).done(function(e,r,o){200==e.code?(u.storage.pr.Updatesite(n,t.url,[e.site.url,u.storage.pr.Cleansite(e.site)]),u.storage.Writesite(u.storage.pr.sites,function(){(new a).Render(0,"更新成功，2 秒后自动关闭页面，失效的页面会自动刷新。"),setTimeout(function(){return location.href=location.protocol+location.pathname+"#sites?update=success"},2e3),g.SendMessage("site",!0)})):404==e.code?((new a).Render("无任何可用更新，2 秒后页面将会关闭！"),setTimeout(function(){return location.href=location.protocol+location.pathname+"#sites?update=pending"},2e3)):((new a).Render(2,"暂时无法使用此功能，请稍候再试，2 秒后页面将会关闭！"),setTimeout(function(){return location.href=location.protocol+location.pathname+"#sites?update=failed"},2e3))}).fail(function(e){(new a).Render(2,"自动更新出现错误，请稍后再试！")})}},{key:"componentWillMount",value:function(){decodeURIComponent(location.href).includes("#sites?install=")&&this.install(),decodeURIComponent(location.href).includes("#sites?update=")&&this.update()}},{key:"render",value:function(){var t=this;return e.createElement("div",{id:"labs","data-page":"sites",style:{width:"100%"}},e.createElement("div",{className:"version-tips","data-hits":"newsites"},e.createElement("div",{className:"label","data-head-level":"h1","data-head-title":"官方主适配源"},"官方主适配源 ",e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/sites/",style:{color:" #673ab7",borderBottom:"2px dotted",fontSize:"10px",fontWeight:"bold",cursor:"pointer"}},"共计 ",u.storage.simpread.sites.length," 类")),e.createElement("div",{className:"lab"},e.createElement(E.default,{type:"flat",text:"手动同步适配列表",width:"100%",icon:k.IconPath("update_icon"),color:"#fff",backgroundColor:"rgb(103, 58, 183)",waves:"md-waves-effect md-waves-button",onClick:function(){return t.newsites()}}))),e.createElement("div",{className:"label","data-head-level":"h1"},"第三方适配源"),e.createElement("div",{ref:"origins",style:{"padding-top":"10px","margin-bottom":"8px;"},className:"lab"},e.createElement("div",{className:"version-tips","data-hits":"customsites"},e.createElement(y.default,{multi:!0,rows:4,placeholder:"仅支持 URL 地址，每行一个。",value:(this.props.option.origins||[]).join("\n"),onChange:function(){return t.changeOrigins()}}),e.createElement("div",{style:{display:"flex"}},e.createElement(E.default,{type:"flat",text:"加载第三方适配列表",width:"100%",style:{display:"none",margin:"0"},color:"#fff",backgroundColor:"#4CAF50",waves:"md-waves-effect md-waves-button",onClick:function(){return t.origins("origins")}}),e.createElement(E.default,{type:"flat",text:"导入到第三方适配列表",width:"100%",style:{margin:"0 10px"},color:"#fff",backgroundColor:"rgb(103, 58, 183)",waves:"md-waves-effect md-waves-button",onClick:function(){return t.origins("import")}}),e.createElement(E.default,{type:"flat",text:"清除第三方适配列表",width:"100%",style:{margin:"0"},color:"#fff",backgroundColor:"#FF5252",waves:"md-waves-effect md-waves-button",onClick:function(){return t.origins("clear")}})))),e.createElement("div",{className:"version-tips","data-hits":"sitemgr"},e.createElement("div",{className:"label","data-head-level":"h1"},"站点管理器"),e.createElement("div",{style:{"padding-top":"10px",position:"relative"},className:"lab md-waves-effect",onClick:function(){return t.onClick("sitemgr")}},e.createElement("div",{className:"more",style:{cursor:"pointer"}},e.createElement("div",{className:"h2"},"可以管理全部的适配站点"),e.createElement("span",{className:"desc"},"包括：官方适配源、第三方适配源、站点集市适配源、自定义适配源。"),e.createElement("span",{className:"arrow"})))),e.createElement("div",{className:"version-tips","data-hits":"personsites"},e.createElement("div",{className:"label","data-head-level":"h1","data-head-title":"站点集市"},"站点集市 ",e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/sites/",style:{color:" #673ab7",borderBottom:"2px dotted",
fontSize:"10px",fontWeight:"bold",cursor:"pointer"}},"共计 ",u.storage.pr.sites.person.length," 类")),e.createElement("div",{className:"lab"},e.createElement("div",{style:{display:"inline-flex",width:"100%"}},e.createElement(E.default,{type:"flat",text:"打开「站点集市」",width:"100%",fontIcon:'<i class="fas fa-external-link-square-alt"></i>',color:"#fff",backgroundColor:"rgb(103, 58, 183)",waves:"md-waves-effect md-waves-button",onClick:function(){return t.addmore()}}),e.createElement(E.default,{type:"flat",text:"清除「站点集市」的全部站点",width:"100%",icon:k.IconPath("clear_icon"),color:"#fff",backgroundColor:"#757575",waves:"md-waves-effect md-waves-button",onClick:function(){return t.clear()}})),e.createElement("div",{style:{"padding-top":"10px"}},e.createElement(_,{onChange:function(e){return t.onChange(e)}})))))}}]),n}(e.Component);t.default=A}).call(t,n(2),n(7))},344:function(e,t,n){(function(e,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),d=n(380),p=o(d),u=n(10),m=o(u),f=n(4),h=n(27),b=r(h),g=n(28),v=r(g),k=n(201),w=o(k),y={root:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},text:{fontSize:"1.6rem",color:"#9b9b9b"},icon:{width:"80px",height:"80px",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:"url(  )"}},x=(0,w.default)(),E=function(t){function n(){var e,t,a,r;i(this,n);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return t=a=s(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={title:"未读列表："+a.props.list.length+" 条",items:a.props.list.map(function(e){return e.priType="text",e.secType="text",e.priValue=e.title.substr(0,1),e.secValue=x.format(e.create.replace(/(年|月)/g,"-").replace("日",""),"zh_CN"),e.url=e.url+(window.location.search?"&":"?")+"simpread_mode=read",e}),total:Math.ceil(a.props.list.length/a.props.step),page:1},r=t,s(a,r)}return l(n,t),c(n,[{key:"onAction",value:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=v.pocket,s=v.linnk,l=v.instapaper,c=r[0],d=(r[1],r[2]);["pocket","instapaper","linnk"].includes(c)&&v.VerifySvcWrapper(f.storage,v[c],c,v.Name(c),new a,!1).done(function(e){"pocket"==e?i.Add(d.url,d.title.trim(),function(t,n){return v.svcCbWrapper(t,n,i.name,e,new a)}):"linnk"==e?s.GetSafeGroup(s.group_name,function(t,n){n?(new a).Render(2,s.name+" 保存失败，请稍后重新再试。"):(s.group_id=t.data.groupId,s.Add(d.url,d.title.trim(),function(t,n){return v.svcCbWrapper(t,n,s.name,e,new a)}))}):l.Add(d.url,d.title.trim(),"",function(t,n){return v.svcCbWrapper(t,n,l.name,e,new a)})}),"remove"==c&&f.storage.UnRead(c,d.idx,function(e){e&&t.state.items.splice(t.state.items.findIndex(function(e){return e.idx==d.idx}),1),e&&t.setState({title:"未读列表："+t.state.items.length+" 条",total:Math.ceil(t.state.items.length/t.props.step)}),e&&(new a).Render(0,"删除成功")})}},{key:"onClick",value:function(){this.setState({page:this.state.page+1}),this.props.onLoadMoreClick&&this.props.onLoadMoreClick()}},{key:"render",value:function(){var t=this,n={display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%"},a=this.state.page>=this.state.total,r=this.state.items.slice(0,this.state.page*this.props.step),o=this.state.items&&this.state.items.length>0?e.createElement("div",null,e.createElement("div",{className:"version-tips","data-hits":"laterlist"},e.createElement(p.default,{acIconWaves:"md-waves-effect md-waves-circle",acItemWaves:"md-waves-effect",title:this.state.title,contentStyle:n,items:r,actionItems:b.actionItems,priBgColor:"#E1BEE7",onAction:function(e,n,a,r){return t.onAction(e,n,a,r)}})),e.createElement("div",{className:"version-tips","data-hits":"latermore"},e.createElement(m.default,{type:"flat",width:"100%",text:a?"加载完毕":"加载更多",disable:a,color:"#fff",backgroundColor:"rgb(156, 39, 176)",waves:"md-waves-effect md-waves-button",onClick:function(){return t.onClick()}}))):e.createElement("div",{style:y.root},e.createElement("span",{style:y.icon}),e.createElement("span",{style:y.text},"没有任何未读列表!"));return e.createElement("div",null,o)}}]),n}(e.Component);E.defaultProps={list:[],step:5},E.propsType={list:e.PropTypes.array,step:e.PropTypes.number,onLoadMoreClick:e.PropTypes.func},t.default=E}).call(t,n(2),n(7))},346:function(e,t,n){(function(e,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){39==e.keyCode?$("welcome footer a:last-child")[0].click():37==e.keyCode&&$("welcome footer a:first-child")[0].click()}function d(){$(x).velocity({opacity:0},{complete:function(){a.unmountComponentAtNode($(x)[0]),$("body").off("keydown",c)}})}function p(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=$(t);0==i.find("."+y).length&&i.append(E),a.render(e.createElement(N,{first:n,version:r,reopen:o}),$(x)[0]),$("body").on("keydown",c)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();t.Render=p,n(71),n(66);var f=n(10),h=o(f),b=n(9),g=r(b),v=n(3),k=n(6),w=r(k),y="welcome",x="."+y,E='<div class="'+y+'"></div>',C=void 0,_=[0,0],A={root:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",position:"relative",minWidth:"400px",minHeight:"400px",width:"650px",height:"600px",backgroundColor:"#fff",borderRadius:"3px",boxShadow:"rgba(0, 0, 0, .247059) 0px 14px 45px",userSelect:"none"},section:{textAlign:"center"},h2:{marginBottom:0,color:"inherit",fontSize:"24px",fontWeight:"bold",lineHeight:"32px",textAlign:"center"},desc:{padding:"5px",color:"rgba(51, 51, 51, 0.7)",fontSize:"15px",fontWeight:400,lineHeight:"32px",textAlign:"center"},img:{width:"100%",marginTop:"-82px"},gif:{paddingTop:"58px",width:"550px"},pro:{margin:"0 4px",padding:"2px 5px",color:"#fff",backgroundColor:"#4DBB7C",fontSize:"12px",fontWeight:"bold",borderRadius:"4px"},number:{margin:"2px",fontFamily:"'Dancing Script', cursive",fontSize:"22px",fontWeight:"bold"},sup:{transform:"scale(.7) translateX(-5px)"},table:{display:"flex",justifyContent:"center",alignItems:"center",color:"inherit",fontSize:"inherit"},table_label:{textAlign:"right"},strong:{fontWeight:"normal",color:"#3f51b5"},footer:{display:"flex",flexDirection:"row",marginBottom:"24px"},close:{position:"absolute",top:0,right:0}},N=function(t){function n(){var e,t,a,r;i(this,n);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return t=a=s(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(l))),a.state={style:{display:"none"},state:"next_icon"},r=t,s(a,r)}return l(n,t),m(n,[{key:"prevClick",value:function(){$(".carousel.carousel-slider").carousel("prev")}},{key:"nextClick",value:function(){C!=_?$(".carousel.carousel-slider").carousel("next"):this.closeClick()}},{key:"closeClick",value:function(){window.dispatchEvent(new CustomEvent(w.MESSAGE_ACTION.welcome_close,{detail:{first:this.props.first,version:this.props.version,reopen:this.props.reopen}})),d()}},{key:"carousel",value:function(){var e=this;$(".carousel-item").map(function(t,n){var a=$(n),r=a.attr("id");"end"!=r&&"start"!=r&&r!=e.props.version&&a.remove()})}},{key:"componentDidMount",value:function(){var e=this;!this.props.first&&this.carousel(),_=$(".carousel-item").length-1,$(".carousel.carousel-slider").carousel({fullWidth:!0,onCycleTo:function(t){C=t,C==_?e.setState({style:{display:"block"},state:"right_icon"}):0==C?e.setState({style:{display:"none"},state:"next_icon"}):("block"!=e.state.style.display&&e.setState({style:{display:"block"}}),"next_icon"!=e.state.state&&e.setState({state:"next_icon"}))}})}},{key:"componentWillUnmount",value:function(){$(x).remove()}},{key:"render",value:function(){var t=this,n=this.props,a=n.first,r=n.version;return e.createElement("welcome",{style:A.root},e.createElement("div",{className:"carousel carousel-slider","data-indicators":"true"},e.createElement("div",{className:"carousel-item chrome",id:"start"},e.createElement("section",{style:A.section},e.createElement("img",{src:g.IconPath("welcome-2","webp"),style:A.img}),e.createElement("h2",{style:u({},A.h2,{"margin-bottom":0})},this.props.first?r.startsWith("1")?"欢迎使用 简悦":"简悦 = 阅读模式 + 标注 + 稍后读":r.startsWith("1")?"简悦 已升至最新版":"阅读模式 + 标注 + 稍后读 = ？"),e.createElement("div",{style:A.desc},v.br.isFirefox()?"Chrome 好评率超过 99% 的阅读模式现已来到 Firefox":r.startsWith("1")?"让你瞬间进入沉浸式阅读的 Chrome 扩展，类似 Safari 的阅读模式<br/>":"",r.startsWith("1")&&e.createElement("div",null,"去掉干扰元素，提升阅读体验，",e.createElement("strong",{style:A.strong},"「简」"),"单阅读，愉",e.createElement("strong",{style:A.strong},"「悦」"),"心情",e.createElement("br",null),"为了达到 ",e.createElement("strong",{style:A.strong},"「完美」")," 的阅读模式，简悦适配了 ",e.createElement("strong",{style:A.strong},e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/sites/"},"数百种类型"))," 的网站"),!r.startsWith("1")&&e.createElement("div",null,"久等了，全新的简悦 ",e.createElement("span",{style:u({},A.number,{color:"#4C68F3"})},"2.0")," 来啦",e.createElement("br",null),"　　如果说 ",e.createElement("span",{style:u({},A.number,{color:"#4C68F3"})},"1.0")," 解决了 ",e.createElement("b",null,"更好的阅读")," 这件小事",e.createElement("br",null),"那么全新的 ",e.createElement("span",{style:u({},A.number,{color:"#4C68F3"})},"2.0")," 则让你 ",e.createElement("b",null,"更加方便的汲取知识"),e.createElement("br",null))))),a&&e.createElement("div",{className:"carousel-item"},e.createElement("section",{style:A.section},e.createElement("img",{src:g.IconPath("welcome-mode","webp"),style:A.img}),e.createElement("h2",{style:A.h2},"阅读模式 与 聚焦模式"),e.createElement("div",{style:A.desc},"阅读模式 → ",e.createElement("strong",null,"独有功能"),"，自动提取适配页面的标题、描述、正文、媒体等资源",e.createElement("br",null),"支持 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/手动框选"},"手动框选")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/主动适配阅读模式"},"主动适配模式")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎"},"智能适配模式"),"· ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/论坛类页面及分页"},"论坛类页面 / 分页"),e.createElement("br",null),e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/聚焦模式"},"聚焦模式")," → 高亮鼠标所在的文章段落，不改变当前页面的结构",e.createElement("br",null)))),(!a&&"1.1.1"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"1.1.1"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-adapter.png",style:A.img}),e.createElement("h2",{style:A.h2},"更智能的正文提取功能"),e.createElement("div",{style:A.desc},"全新的 ",e.createElement("b",null,"词法分析引擎 "),e.createElement("span",{style:u({},A.number,{color:"#4C68F3"})},"2.0")," 简悦可以识别出 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/TXT-阅读器"},"TXT")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=markdown-识别"},"Markdown")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=latex-识别"},"LaTeX")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=代码段的高亮"},"代码段"),e.createElement("br",null),"Wordpress · Hexo · Ghost · Discuz 等博客 / 论坛的页面了！",e.createElement("br",null),"甚至，只要是结构良好的页面，（无需适配）自动生成阅读模式，详细 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎"},"请看这里")))),a&&e.createElement("div",{className:"carousel-item",id:"1.0.3"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-service-v2.png?201806111215",style:A.img}),e.createElement("h2",{style:A.h2},"连接你的生产力工具"),e.createElement("div",{style:A.desc},"支持下载 HTML · PDF · Markdown · PNG · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/发送到-Epub"},"Epub")," 到本地 以及 发送到 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/发送到-Kindle"},"Kindle"),e.createElement("br",null),"支持输出到 坚果云 · 有道云笔记 · 为知笔记 · 语雀 · 印象笔记 · flomo · Onenote · Notion 等",e.createElement("br",null),"发送页面链接到 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读"},"稍后读")," · Pocket · Instapaper，详细 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/导出到生产力工具"},"请看这里")))),!a&&"1.1.0"==r&&e.createElement("div",{className:"carousel-item",id:"1.1.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:g.IconPath("welcome-custom","webp"),style:A.img}),e.createElement("h2",{style:A.h2},"站点编辑器 · 站点适配源 · 站点管理器"),e.createElement("div",{style:A.desc},"页面上任意元素均可隐藏，更支持编程，详细请看 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/站点编辑器",target:"_blank"},"站点编辑器"),e.createElement("br",null),"更灵活、社区化的多种 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/站点适配源",target:"_blank"},"站点适配源"),e.createElement("br",null),"内置了 ",e.createElement("a",{href:"http://ksria.com/simpread/docs/#/站点管理器",target:"_blank"},"站点管理器"),"，方便管理全部的适配站点"))),!a&&"1.1.1"==r&&e.createElement("div",{className:"carousel-item",id:"1.1.1"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-fap.png",style:A.img}),e.createElement("h2",{style:A.h2},"全新的控制栏面板"),e.createElement("div",{style:A.desc},"「告别」传统、单一的控制栏，全部功能「一览无余」",e.createElement("br",null),"主题、字体样式、大小、版面布局更改一键完成",e.createElement("br",null)))),(!a&&"1.1.2"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"1.1.2"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-plugins.png",style:A.img}),e.createElement("h2",{style:A.h2},"插件系统"),e.createElement("div",{style:A.desc},e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/plugins/details/kw36BtjGu0"},"字数统计")," · ",e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/plugins/details/klGUASLasg"},"代码段增强")," · ",e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/plugins/details/VQOZdNET2d"},"点击查看大图（Lightbox）")," · ",e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/plugins/details/ohnTKVHz4a"},"划词翻译")," 一个不能少 ",e.createElement("br",null),"使用 JavaScript 编写基于简悦的插件，详细说明请看 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/插件系统"},"说明文档"),e.createElement("br",null),"现在就安装适合你的插件吧 → ",e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/plugins/"},"插件中心")))),!a&&"1.1.2"==r&&e.createElement("div",{className:"carousel-item",id:"1.1.2"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-sites.png",style:A.img}),e.createElement("h2",{style:A.h2},"站点集市"),e.createElement("div",{style:A.desc},"方便提交，让你的站点为数以万计的简悦用户使用",e.createElement("br",null),"官方主适配源、第三方适配源、站点集市适配源、自定义适配源一站式浏览",e.createElement("br",null),"现在就访问 ",e.createElement("a",{target:"_blank",href:"https://simpread.ksria.cn/sites/"},"站点集市")," 吧，看看有什么增加的新适配站点"))),!a&&e.createElement("div",{className:"carousel-item",id:"5005"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-puread-ii.png",style:A.img}),e.createElement("h2",{style:A.h2},"词法分析引擎 2.0"),e.createElement("div",{style:A.desc},"更加智能，更加专业，Markdown / LaTeX / 代码段 均不在话下",e.createElement("br",null),"重新整理并根据更适合中文阅读的方式排版，让你爱上在 PC 阅读文章",e.createElement("br",null),"详细说明请看 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎"},"词法分析引擎")))),!a&&"1.1.3"==r&&e.createElement("div",{className:"carousel-item",id:"1.1.3"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-newservice.png?201906301335",style:A.img}),e.createElement("h2",{style:A.h2},"导出服务又添新成员，更支持 WebDAV"),e.createElement("div",{style:A.desc},"期待已久的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/导出到生产力工具"},"语雀")," 和 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/坚果云"},"坚果云")," 现已加入 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/导出到生产力工具"},"导出服务")," 豪华大礼包",e.createElement("br",null),"配置文件的同步也可使用 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/同步"},"坚果云")," 了",e.createElement("br",null),"不仅如此，只要是支持 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/WebDAV"},"WebDAV")," 的服务均可使用简悦的导出功能"))),!a&&"1.1.4"==r&&e.createElement("div",{className:"carousel-item",id:"1.1.4"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-newservice-ii.png?202001181335",style:A.img}),e.createElement("h2",{style:A.h2},"更强大，更易用的导出服务"),e.createElement("div",{style:A.desc},"期待已久的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Notion"},"Notion")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/有道云笔记"},"有道云笔记")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/为知笔记"},"为知笔记")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/URLSCHEME"},"Bear")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/URLSCHEME"},"Ulysses")," 来啦~",e.createElement("br",null),"原生的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/离线HTML"},"离线 HTML / Markdown")," 下载功能，还有截取任意位置的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/截图"},"截图")," 功能",e.createElement("br",null),e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/WebDAV?id=定制"},"WebDAV")," 现已定制导出格式，包括： ",e.createElement("span",null,"Markdown")," · ",e.createElement("span",null,"HTML")))),!a&&"1.1.3"==r&&e.createElement("div",{className:"carousel-item",id:"1.1.3"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-notice.png?20190630",style:A.img}),e.createElement("h2",{style:A.h2},"消息中心 · 帮助中心 · 新手入门"),e.createElement("div",{style:A.desc},e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/消息中心"},"消息中心")," 让沟通更加便利",e.createElement("br",null),"内置常用的文档说明、常见问题、及选项页全部功能说明的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/帮助中心"},"帮助中心"),e.createElement("br",null),"功能太多，无从下手？",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/guide"},"新手入门")," 不再让新手望而却步"))),(!a&&"2.0.0"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"2.0.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-annoate.webp",style:A.img}),e.createElement("h2",{style:A.h2},"标注系统，来啦"),e.createElement("div",{style:A.desc},e.createElement("span",{style:u({},A.number,{color:"#4C68F3"})},"3"),"种标注模式，",e.createElement("span",{style:u({},A.number,{color:"#C47067"})},"4"),"种标注样式，",e.createElement("span",{style:u({},A.number,{color:"#DFBB58"})},"5"),"种标注颜色",e.createElement("br",null),"支持连续标注，无限层级标签系统，每个标注均添加备注",e.createElement("br",null),"方便的标注侧栏，导出标注到各种生产力工具，自动识别：",e.createElement("b",null,"图片")," · ",e.createElement("b",null,"代码段")))),!a&&"2.0.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.0.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-annoate-pro.webp",style:A.img}),e.createElement("h2",{style:A.h2},"灵活且强大的标注"),e.createElement("div",{style:A.desc},e.createElement("table",{style:A.table},e.createElement("tr",null,e.createElement("td",{style:A.table_label},"三种标识模式"),e.createElement("td",null," → 除了任意文本内容外，自动识别：",e.createElement("b",null,"图片")," · ",e.createElement("b",null,"代码段"))),e.createElement("tr",null,e.createElement("td",{style:A.table_label},"四种标注形式",e.createElement("img",{src:v.browser.runtime.getURL("assets/images/badge-pro.svg"),style:A.sup})),e.createElement("td",null," → 看够了千篇一律的高亮样式？可以试试更加丰富的标注形式")),e.createElement("tr",null,e.createElement("td",{style:A.table_label},"拖拽排序",e.createElement("img",{src:v.browser.runtime.getURL("assets/images/badge-pro.svg"),style:A.sup})),e.createElement("td",null," → 通过侧栏你可以方便对标注进行排序")))))),(!a&&"2.0.0"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"2.0.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-unreader.webp",style:A.img}),e.createElement("h2",{style:A.h2},"完美蜕变的稍后读 ",e.createElement("span",{style:u({},A.number,{color:"#4C68F3",fontSize:"27px"})},"2.0")),e.createElement("div",{style:A.desc},"一个真正意义上的稍后读，经典 ",e.createElement("span",{style:u({},A.number,{color:"#4C68F3"})},"3")," 栏布局",e.createElement("br",null),"归档 · 标签层级分类 · 标注管理 · All-in-out 导出功能 · 内置阅读模式",e.createElement("br",null),"以及，支持 ",e.createElement("b",null,"导出到任意双链笔记"),"，支持 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/双向链接"},e.createElement("b",null,"反向链接"))," 与 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/双向链接?id=图谱"},e.createElement("b",null,"知识图谱"))," ",e.createElement("span",{style:A.pro},"PRO")))),!a&&"2.0.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.0.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-unreader-collection.webp",style:A.img}),e.createElement("h2",{style:A.h2},"稍后读 · 合辑",e.createElement("img",{src:v.browser.runtime.getURL("assets/images/badge-pro.svg"),style:A.sup})),e.createElement("div",{style:A.desc},"整合分散在不同地方、不同位置的高亮到一处",e.createElement("br",null),"标题 · 描述 · 备注 · 无限层级的标签系统，一应俱全",e.createElement("br",null),"真正意义的做到让你的 ",e.createElement("b",null,"稍后读不再永远不读"),e.createElement("br",null)))),!a&&"2.0.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.0.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-unreader-share.webp",style:A.img}),e.createElement("h2",{style:A.h2},"稍后读 · 分享页",e.createElement("img",{src:v.browser.runtime.getURL("assets/images/badge-pro.svg"),style:A.sup})),e.createElement("div",{style:A.desc},"一键分享你的合辑 · 稍后读（标注）",e.createElement("br",null),"更内置了阅读模式解析器，可直接在阅读模式下查看高亮效果",e.createElement("br",null),"专属 simp.red 短域名，",e.createElement("a",{href:"https://simpread.pro/s/simpread",target:"_blank"},"示例 1 ",e.createElement("i",{className:"fas fa-external-link-square-alt"}))," · ",e.createElement("a",{href:"https://simpread.pro/s/z2Axt6i1",target:"_blank"},"示例 2 ",e.createElement("i",{className:"fas fa-external-link-square-alt"}))))),!a&&"2.0.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.0.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-account.webp",style:A.img}),e.createElement("h2",{style:A.h2},"全新的账户系统"),e.createElement("div",{style:A.desc},"为了更好的服务简悦用户，简悦 ",e.createElement("span",{style:u({},A.number,{color:"#4C68F3"})},"2.0")," 启用了全新的账户系统",e.createElement("br",null),"针对喜好生产力工具的用户增加了 ",e.createElement("span",{style:A.pro},"PRO")," 版账户系统",e.createElement("br",null),"加量更实惠 ",e.createElement("span",{style:u({},A.number,{color:"#4C68F3"})},"1.0")," 版功能 ",e.createElement("b",null,"永久免费"),"，更有 ",e.createElement("b",null,"捐赠免费升级")," 计划"))),(!a&&"2.1.0"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"2.1.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"https://simpread-1254315611.file.myqcloud.com/static/welcome/welcome-synchelper.webp",style:A.img}),e.createElement("h2",{style:A.h2},"简悦 · 同步助手",e.createElement("img",{src:v.browser.runtime.getURL("assets/images/badge-pro.svg"),style:A.sup})),e.createElement("div",{style:A.desc},e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},e.createElement("b",null,"简悦 · 同步助手"))," 是一个 ",e.createElement("b",null,"桌面应用"),"，可为简悦提供更多的可能性。",e.createElement("br",null),"包括：",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=自动同步"},"自动同步")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=导出服务"},"导出到本地任意目录")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=Epub"},"原生的 Epub 输出"),e.createElement("br",null),e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=PDF"},"原生的 PDF 输出")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=邮件服务"},"邮件服务")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=发送到Kindle"},"直接发送到 Kindle")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Bookmarklet"},"小书签")," 等多种服务。"))),(!a&&"2.1.0"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"2.1.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"https://simpread-1254315611.file.myqcloud.com/static/welcome/welcome-passport.webp",style:A.img}),e.createElement("h2",{style:A.h2},"授权登录",e.createElement("img",{src:v.browser.runtime.getURL("assets/images/badge-pro.svg"),style:A.sup})),e.createElement("div",{style:A.desc},"更便捷登录简悦 · 高级账户的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/授权登录"},e.createElement("b",null,"授权登录"))," 来了。",e.createElement("br",null),"现支持 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/授权登录?id=支持的第三方服务"},e.createElement("b",null,"坚果云")," 与 ",e.createElement("b",null,"Dropbox"))," 登录方式，未来会支持更多登录方案。",e.createElement("br",null),"集中管理你的高级账户功能，包括：",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/高级账户?id=购买渠道"},"购买")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/高级账户?id=如何绑定"},"绑定")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/授权登录?id=登录"},"登录")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/高级账户?id=重新授权"},"授权")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/高级账户?id=找回高级账户"},"找回高级账户"),e.createElement("br",null)))),(!a&&"2.1.0"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"2.1.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"https://simpread-1254315611.file.myqcloud.com/static/welcome/welcome-synchronisation.webp",style:A.img}),e.createElement("h2",{style:A.h2},"自动同步",e.createElement("img",{src:v.browser.runtime.getURL("assets/images/badge-pro.svg"),style:A.sup})),e.createElement("div",{style:A.desc},"借助 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},e.createElement("b",null,"简悦 · 同步助手"))," 你可以使用 ",e.createElement("b",null,"任意网盘应用")," 来实现 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=自动同步"},e.createElement("b",null,"自动同步")),"。",e.createElement("br",null),"包括：",e.createElement("b",null,"你的稍后读以及配置文件"),"，如何配置 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=自动同步"},"请看这里"),"。",e.createElement("br",null)))),(!a&&"2.1.0"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"2.1.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"https://simpread-1254315611.file.myqcloud.com/static/welcome/welcome-dailyreview.webp",style:A.img}),e.createElement("h2",{style:A.h2},"每日回顾",e.createElement("img",{src:v.browser.runtime.getURL("assets/images/badge-pro.svg"),style:A.sup})),e.createElement("div",{style:A.desc},"每天 ",e.createElement("b",null,"19点10分"),"，简悦会将 ",e.createElement("b",null,"二十四小时内的稍后读")," 发送到你的邮箱。",e.createElement("br",null),"借此可以做 ",e.createElement("b",null,"精读或当日回顾"),"，如何配置 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/每日回顾?id=如何开通"},"请看这里"),"。",e.createElement("br",null),"更优化了手机阅读界面，让你的 ",e.createElement("b",null,"碎片时间 / 通勤时间")," 更有意义。"))),!a&&"2.1.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.1.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-unreader.webp",style:A.img}),e.createElement("h2",{style:A.h2},"更易用的稍后读"),e.createElement("div",{style:A.desc},"虽然没有大更新，但这些功能也可以让你更好地「玩转」稍后读",e.createElement("br",null),e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读?id=多种直达入口"},"更多的入口")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Alfred"},"支持 Alfred")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/welcome/version_2.1.0.html#unreader"},"完备的归档系统")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读?id=导出"},"与阅读模式一致的导出功能"),e.createElement("br",null),e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读?id=清爽模式"},"清爽模式")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync?id=内置解析"},"内置更强的解析方案")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读?id=搜索引擎匹配"},"搜索引擎匹配")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读?id=自动保存到本地"},"自动保存到本地")))),!a&&"2.1.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.1.0"},e.createElement("section",{style:A.section
},e.createElement("img",{src:"http://sr.ksria.cn/welcome-annoate-pro.webp",style:A.img}),e.createElement("h2",{style:A.h2},"更方便的标注"),e.createElement("div",{style:A.desc},e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/welcome/version_2.1.0.html#annoate"},"设定默认标注样式")," · ",e.createElement("b",null,"显示备注")," · ",e.createElement("b",null,"导出包含标注的 HTML"),e.createElement("br",null),e.createElement("b",null,"浮动标注栏的复制功能")," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/标注?id=自动保存到本地"},"自动保存到本地"),e.createElement("br",null),"上面这些功能，让你更好的 ",e.createElement("b",null,"标注你所关注")))),!a&&"2.2.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.2.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-unreader-backlinks.webp",style:A.img}),e.createElement("h2",{style:A.h2},"构筑自己的「数字花园」"),e.createElement("div",{style:A.desc},"全新升级的稍后读，将你散落到各处的信息汇总一处，构筑属于稍后读的 ",e.createElement("b",null,"数字花园"),e.createElement("br",null),"多种布局，包括：",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读-多种布局?id=Evergreen"},e.createElement("b",null,"Evergreen Notes"))," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读-多种布局?id=Workflowy"},e.createElement("b",null,"Workflowy Notes"))," · ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/稍后读-多种布局?id=Kanban"},e.createElement("b",null,"Kanban Notes")),e.createElement("br",null),"不止如此，更支持 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/双向链接"},e.createElement("b",null,"反向链接"))," 与 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/双向链接?id=图谱"},e.createElement("b",null,"知识图谱")),"，详细 ",e.createElement("a",{href:"https://simpread.pro/welcome/version_2.2.0.html#unreader"},e.createElement("b",null,"请看这里 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))))),!a&&"2.2.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.2.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-automated.webp",style:A.img}),e.createElement("h2",{style:A.h2},"简悦的 IFTTT 模式"),e.createElement("div",{style:A.desc},"导出 HTML 后，还需要导出到 Notion？以前需要点两次，现在一次就搞定了",e.createElement("br",null),"导出功能全面转换为 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/服务?id=自动化"},e.createElement("b",null,"自动化 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 功能，简悦的 IFTTT 模式来了",e.createElement("br",null),"支持场景：",e.createElement("b",null,"稍后读")," 与 ",e.createElement("b",null,"标注"),"，甚至于可以将 ",e.createElement("b",null,"自动化服务当作导出服务")," 使用",e.createElement("br",null)))),!a&&"2.2.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.2.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-custom-md.webp",style:A.img}),e.createElement("h2",{style:A.h2},"Markdown 定制化"),e.createElement("div",{style:A.desc},"简悦可以将阅读模式几乎完美的生成为 Markdown，甚至支持 LateX 的转换",e.createElement("br",null),"不仅如此，现在开始可以支持 Markdown 的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/定制化导出"},e.createElement("b",null,"定制化 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 功能",e.createElement("br",null),"几乎完美的支持导入任意 ",e.createElement("b",null,"双向链接笔记"),"，如：Logseq · Obsidian · Roam Research 等"))),!a&&"2.2.0"==r&&e.createElement("div",{className:"carousel-item",id:"2.2.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-webhooks.webp",style:A.img}),e.createElement("h2",{style:A.h2},"Webhooks 与 导出任意格式"),e.createElement("div",{style:A.desc},"得益于 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Sync"},e.createElement("b",null,"简悦 · 同步助手"))," 中 ",e.createElement("b",null,"Pandoc")," 的加持，新增支持任意格式的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/定制化导出?id=自定义导出"},e.createElement("b",null,"自定义导出 ",e.createElement("i",{className:"fas fa-external-link-square-alt"}))),e.createElement("br",null),"除此以外，简悦还支持原生的 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/Textbundle"},e.createElement("b",null,"TextBundle ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 导出",e.createElement("br",null),"没有你需要的服务？利用 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/定制化导出?id=Webhook"},e.createElement("b",null,"简悦 · Webhook ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 可支持任意服务的导出",e.createElement("br",null)))),(!a&&"2.2.0"==r||"all"==r)&&e.createElement("div",{className:"carousel-item",id:"2.2.0"},e.createElement("section",{style:A.section},e.createElement("img",{src:"http://sr.ksria.cn/welcome-developer.webp",style:A.img}),e.createElement("h2",{style:A.h2},"开放平台"),e.createElement("div",{style:A.desc},"利用 API，用你 ",e.createElement("b",null,"喜欢的 App")," 作为简悦的客户端，用你 ",e.createElement("b",null,"喜欢的方式导入")," 到稍后读",e.createElement("br",null),"覆盖 Mac Windows Android iOS 平台 ",e.createElement("a",{target:"_blank",href:"https://github.com/Kenshin/simpread/discussions/categories/developer"},e.createElement("b",null,"点击这里 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," 查看",e.createElement("br",null),"开发文档 ",e.createElement("a",{target:"_blank",href:"https://simpread.pro/api"},e.createElement("b",null,"直戳这里 ",e.createElement("i",{className:"fas fa-external-link-square-alt"})))," ",e.createElement("a",{target:"_blank",href:"https://simpread.pro/developer"},e.createElement("b",null,"马上使用 ",e.createElement("i",{className:"fas fa-external-link-square-alt"}))),e.createElement("br",null)))),e.createElement("div",{className:"carousel-item",id:"end"},e.createElement("section",{style:A.section},e.createElement("img",{src:g.IconPath("welcome-others","webp"),style:A.img}),e.createElement("h2",{style:u({},A.h2,{marginTop:"70px"})},"~ 更多功能 即将上线 ~"),!a&&"5005"==r&&e.createElement("div",{style:A.desc},"分享卡，右键菜单添加 「白名单 / 排除列表 / 黑名单」等",e.createElement("br",null),"详细说明请看 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/welcome/version_1.1.2.5005.html"},"更新日志")),!a&&"1.1.3"==r&&e.createElement("div",{style:A.desc},e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=预加载机制"},"预加载")," ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=延迟加载"},"延迟加载")," ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/词法分析引擎?id=智能感知"},"智能感知")," 与 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/docs/#/手动框选?id=二次确认"},"更便捷的手动框选")," 等诸多新功能",e.createElement("br",null),"详细说明请看 ",e.createElement("a",{target:"_blank",href:"http://ksria.com/simpread/welcome/version_1.1.3.html"},"更新日志"))))),e.createElement("footer",{style:A.footer},e.createElement(h.default,{style:this.state.style,shape:"circle",width:"40px",color:"#fff",backgroundColor:"#C8E6C9",icon:g.IconPath("prev_icon"),waves:"md-waves-effect md-waves-button",onClick:function(){return t.prevClick()}}),e.createElement(h.default,{shape:"circle",width:"40px",color:"#fff",backgroundColor:"#4CAF50",icon:g.IconPath(this.state.state),waves:"md-waves-effect md-waves-button",onClick:function(){return t.nextClick()}})),e.createElement("div",{style:A.close},e.createElement(h.default,{shape:"circle",width:"36px",color:"#fff",backgroundColor:"transparent",hoverColor:"transparent",icon:g.IconPath("close_icon"),onClick:function(){return t.closeClick()}})))}}]),n}(e.Component)}).call(t,n(2),n(13))},360:function(e,t,n){(function(e){"use strict";function a(e){$.ajax({url:"http://localhost:"+i.storage.option.remote.port+"/mail",type:"GET"}).done(function(t){var n=t.jsencrypt,a=t.mail;""==a.username||""==a.password||""==a.to||""==a.service?e(void 0,"failed"):(new Function(n)(),e(a,void 0))})}function r(t,n,a){$.ajax({url:i.storage.service+"/accounts/service/publickey",type:"POST"}).done(function(r){var o=new JSEncrypt;o.setPublicKey(r),$.ajax({url:i.storage.service+"/newsletter/service/subscribe",type:"POST",data:{uid:t,finger:n,mail:{service:a.service,username:a.username,password:o.encrypt(a.password),receive:a.to}}}).done(function(t){201==t.code?(new e).Render(1,"谢谢使用此功能，订阅成功。"):403==t.code?(new e).Render(3,"非法授权，如遇到异常情况请 <b>重启浏览器重新授权此设备</b>。"):401==t.code&&"uid"==t.status?(new e).Render(2,"当前账户并非高级账户，请先升级到高级账户。"):401==t.code&&"signin"==t.status?(new e).Render({type:2,content:'使用此功能的前提：<b>已授权第三方登录</b> 并仅支持 <b>坚果云</b> 作为授权登录方案，详细请看 <a target="_blank" href="http://ksria.com/simpread/docs/#/授权登录">授权登录</a>',state:"holdon"}):401==t.code&&"region"==t.status?(new e).Render({type:2,content:'此功能仅支持 <b>坚果云</b> 作为授权登录方案，详细请看 <a target="_blank" href="http://ksria.com/simpread/docs/#/每日回顾?id=第三方授权">授权登录</a>',state:"holdon"}):t.code==-1&&(new e).Render(3,"服务器异常，请稍后再试。")}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})}function o(t,n){$.ajax({url:i.storage.service+"/newsletter/service/unsubscribe",type:"POST",data:{uid:t,finger:n}}).done(function(t){204==t.code?(new e).Render(1,"已成功取消订阅，订阅信息也已成功移除。"):403==t.code?(new e).Render(3,"非法授权，如遇到异常情况请 <b>重启浏览器重新授权此设备</b>。"):t.code==-1&&(new e).Render(3,"服务器异常，请稍后再试。")}).fail(function(t){(new e).Render(3,"服务器异常，请稍后再试。")})}Object.defineProperty(t,"__esModule",{value:!0}),t.unsubscribe=t.setNewsletter=t.getSMTP=void 0;var i=n(4);t.getSMTP=a,t.setNewsletter=r,t.unsubscribe=o}).call(t,n(7))},378:function(e,t,n){var a,r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n){"object"==i(t)&&"undefined"!=typeof e?(e.exports=n(),e.exports.introJs=function(){return n().apply(this,arguments)}):(r=[],a=n,o="function"==typeof a?a.apply(t,r):a,!(void 0!==o&&(e.exports=o)))}(function(){function e(e){this._targetElement=e,this._introItems=[],this._options={nextLabel:"Next &rarr;",prevLabel:"&larr; Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button"}}function t(e,t){var i=e.querySelectorAll("*[data-intro]"),s=[];if(this._options.steps)v(this._options.steps,function(e){var t=r(e);if(t.step=s.length+1,"string"==typeof t.element&&(t.element=document.querySelector(t.element)),void 0===t.element||null===t.element){var n=document.querySelector(".introjsFloatingElement");null===n&&((n=document.createElement("div")).className="introjsFloatingElement",document.body.appendChild(n)),t.element=n,t.position="floating"}t.scrollTo=t.scrollTo||this._options.scrollTo,void 0===t.disableInteraction&&(t.disableInteraction=this._options.disableInteraction),null!==t.element&&s.push(t)}.bind(this));else{var c;if(i.length<1)return!1;v(i,function(e){if((!t||e.getAttribute("data-intro-group")===t)&&"none"!==e.style.display){var n=parseInt(e.getAttribute("data-step"),10);c=void 0!==e.getAttribute("data-disable-interaction")?!!e.getAttribute("data-disable-interaction"):this._options.disableInteraction,0<n&&(s[n-1]={element:e,intro:e.getAttribute("data-intro"),step:parseInt(e.getAttribute("data-step"),10),tooltipClass:e.getAttribute("data-tooltipclass"),highlightClass:e.getAttribute("data-highlightclass"),position:e.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:e.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:c})}}.bind(this));var d=0;v(i,function(e){if((!t||e.getAttribute("data-intro-group")===t)&&null===e.getAttribute("data-step")){for(;void 0!==s[d];)d++;c=void 0!==e.getAttribute("data-disable-interaction")?!!e.getAttribute("data-disable-interaction"):this._options.disableInteraction,s[d]={element:e,intro:e.getAttribute("data-intro"),step:d+1,tooltipClass:e.getAttribute("data-tooltipclass"),highlightClass:e.getAttribute("data-highlightclass"),position:e.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:e.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:c}}}.bind(this))}for(var p=[],u=0;u<s.length;u++)s[u]&&p.push(s[u]);return(s=p).sort(function(e,t){return e.step-t.step}),this._introItems=s,function(e){var t=document.createElement("div"),n="",a=this;if(t.className="introjs-overlay",e.tagName&&"body"!==e.tagName.toLowerCase()){var r=R(e);r&&(n+="width: "+r.width+"px; height:"+r.height+"px; top:"+r.top+"px;left: "+r.left+"px;",t.style.cssText=n)}else n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",t.style.cssText=n;return e.appendChild(t),t.onclick=function(){!0===a._options.exitOnOverlayClick&&l.call(a,e)},window.setTimeout(function(){n+="opacity: "+a._options.overlayOpacity.toString()+";",t.style.cssText=n},10),!0}.call(this,e)&&(o.call(this),this._options.keyboardNavigation&&D.on(window,"keydown",a,this,!0),D.on(window,"resize",n,this,!0)),!1}function n(){this.refresh.call(this)}function a(e){var t=null===e.code?e.which:e.code;if(null===t&&(t=null===e.charCode?e.keyCode:e.charCode),"Escape"!==t&&27!==t||!0!==this._options.exitOnEsc){if("ArrowLeft"===t||37===t)s.call(this);else if("ArrowRight"===t||39===t)o.call(this);else if("Enter"===t||13===t){var n=e.target||e.srcElement;n&&n.className.match("introjs-prevbutton")?s.call(this):n&&n.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),l.call(this,this._targetElement)):n&&n.getAttribute("data-stepnumber")?n.click():o.call(this),e.preventDefault?e.preventDefault():e.returnValue=!1}}else l.call(this,this._targetElement)}function r(e){if(null===e||"object"!=("undefined"==typeof e?"undefined":i(e))||void 0!==e.nodeType)return e;var t={};for(var n in e)void 0!==window.jQuery&&e[n]instanceof window.jQuery?t[n]=e[n]:t[n]=r(e[n]);return t}function o(){this._direction="forward",void 0!==this._currentStepNumber&&v(this._introItems,function(e,t){e.step===this._currentStepNumber&&(this._currentStep=t-1,this._currentStepNumber=void 0)}.bind(this)),void 0===this._currentStep?this._currentStep=0:++this._currentStep;var e=this._introItems[this._currentStep],t=!0;return void 0!==this._introBeforeChangeCallback&&(t=this._introBeforeChangeCallback.call(this,e.element)),!1===t?(--this._currentStep,!1):this._introItems.length<=this._currentStep?("function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void l.call(this,this._targetElement)):void h.call(this,e)}function s(){if(this._direction="backward",0===this._currentStep)return!1;--this._currentStep;var e=this._introItems[this._currentStep],t=!0;return void 0!==this._introBeforeChangeCallback&&(t=this._introBeforeChangeCallback.call(this,e.element)),!1===t?(++this._currentStep,!1):void h.call(this,e)}function l(e,t){var r=!0;if(void 0!==this._introBeforeExitCallback&&(r=this._introBeforeExitCallback.call(this)),t||!1!==r){var o=e.querySelectorAll(".introjs-overlay");o&&o.length&&v(o,function(e){e.style.opacity=0,window.setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(e),500)}.bind(this));var i=e.querySelector(".introjs-helperLayer");i&&i.parentNode.removeChild(i);var s=e.querySelector(".introjs-tooltipReferenceLayer");s&&s.parentNode.removeChild(s);var l=e.querySelector(".introjs-disableInteraction");l&&l.parentNode.removeChild(l);var c=document.querySelector(".introjsFloatingElement");c&&c.parentNode.removeChild(c),g(),v(document.querySelectorAll(".introjs-fixParent"),function(e){w(e,/introjs-fixParent/g)}),D.off(window,"keydown",a,this,!0),D.off(window,"resize",n,this,!0),void 0!==this._introExitCallback&&this._introExitCallback.call(this),this._currentStep=void 0}}function c(e,t,n,a,r){var o,i,s,l,c,m="";if(r=r||!1,t.style.top=null,t.style.right=null,t.style.bottom=null,t.style.left=null,t.style.marginLeft=null,t.style.marginTop=null,n.style.display="inherit",null!=a&&(a.style.top=null,a.style.left=null),this._introItems[this._currentStep])switch(m="string"==typeof(o=this._introItems[this._currentStep]).tooltipClass?o.tooltipClass:this._options.tooltipClass,t.className=("introjs-tooltip "+m).replace(/^\s+|\s+$/g,""),t.setAttribute("role","dialog"),"floating"!==(c=this._introItems[this._currentStep].position)&&(c=function(e,t,n){var a=this._options.positionPrecedence.slice(),r=E(),o=R(t).height+10,i=R(t).width+20,s=e.getBoundingClientRect(),l="floating";s.bottom+o+o>r.height&&u(a,"bottom"),s.top-o<0&&u(a,"top"),s.right+i>r.width&&u(a,"right"),s.left-i<0&&u(a,"left");var c,d,p=(c=n||"",d=c.indexOf("-"),-1!==d?c.substr(d):"");return n&&(n=n.split("-")[0]),a.length&&(l="auto"!==n&&-1<a.indexOf(n)?n:a[0]),-1!==["top","bottom"].indexOf(l)&&(l+=function(e,t,n,a){var r=t/2,o=Math.min(n.width,window.screen.width),i=["-left-aligned","-middle-aligned","-right-aligned"],s="";return o-e<t&&u(i,"-left-aligned"),(e<r||o-e<r)&&u(i,"-middle-aligned"),e<t&&u(i,"-right-aligned"),s=i.length?-1!==i.indexOf(a)?a:i[0]:"-middle-aligned"}(s.left,i,r,p)),l}.call(this,e,t,c)),s=R(e),i=R(t),l=E(),k(t,"introjs-"+c),c){case"top-right-aligned":n.className="introjs-arrow bottom-right";var f=0;p(s,f,i,t),t.style.bottom=s.height+20+"px";break;case"top-middle-aligned":n.className="introjs-arrow bottom-middle";var h=s.width/2-i.width/2;r&&(h+=5),p(s,h,i,t)&&(t.style.right=null,d(s,h,i,l,t)),t.style.bottom=s.height+20+"px";break;case"top-left-aligned":case"top":n.className="introjs-arrow bottom",d(s,r?0:15,i,l,t),t.style.bottom=s.height+20+"px";break;case"right":t.style.left=s.width+20+"px",s.top+i.height>l.height?(n.className="introjs-arrow left-bottom",t.style.top="-"+(i.height-s.height-20)+"px"):n.className="introjs-arrow left";break;case"left":r||!0!==this._options.showStepNumbers||(t.style.top="15px"),s.top+i.height>l.height?(t.style.top="-"+(i.height-s.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",t.style.right=s.width+20+"px";break;case"floating":n.style.display="none",t.style.left="50%",t.style.top="50%",t.style.marginLeft="-"+i.width/2+"px",t.style.marginTop="-"+i.height/2+"px",null!=a&&(a.style.left="-"+(i.width/2+18)+"px",a.style.top="-"+(i.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right",p(s,f=0,i,t),t.style.top=s.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle",h=s.width/2-i.width/2,r&&(h+=5),p(s,h,i,t)&&(t.style.right=null,d(s,h,i,l,t)),t.style.top=s.height+20+"px";break;default:n.className="introjs-arrow top",d(s,0,i,l,t),t.style.top=s.height+20+"px"}}function d(e,t,n,a,r){return e.left+t+n.width>a.width?(r.style.left=a.width-n.width-e.left+"px",!1):(r.style.left=t+"px",!0)}function p(e,t,n,a){return e.left+e.width-t-n.width<0?(a.style.left=-e.left+"px",!1):(a.style.right=t+"px",!0)}function u(e,t){-1<e.indexOf(t)&&e.splice(e.indexOf(t),1)}function m(e){if(e){if(!this._introItems[this._currentStep])return;var t=this._introItems[this._currentStep],n=R(t.element),a=this._options.helperElementPadding;x(t.element)?k(e,"introjs-fixedTooltip"):w(e,"introjs-fixedTooltip"),"floating"===t.position&&(a=0),e.style.cssText="width: "+(n.width+a)+"px; height:"+(n.height+a)+"px; top:"+(n.top-a/2)+"px;left: "+(n.left-a/2)+"px;"}}function f(e){e.setAttribute("role","button"),e.tabIndex=0}function h(e){void 0!==this._introChangeCallback&&this._introChangeCallback.call(this,e.element);var t,n,a,r,i=this,d=document.querySelector(".introjs-helperLayer"),p=document.querySelector(".introjs-tooltipReferenceLayer"),u="introjs-helperLayer";if("string"==typeof e.highlightClass&&(u+=" "+e.highlightClass),"string"==typeof this._options.highlightClass&&(u+=" "+this._options.highlightClass),null!==d){var h=p.querySelector(".introjs-helperNumberLayer"),x=p.querySelector(".introjs-tooltiptext"),E=p.querySelector(".introjs-arrow"),C=p.querySelector(".introjs-tooltip");if(a=p.querySelector(".introjs-skipbutton"),n=p.querySelector(".introjs-prevbutton"),t=p.querySelector(".introjs-nextbutton"),d.className=u,C.style.opacity=0,C.style.display="none",null!==h){var _=this._introItems[0<=e.step-2?e.step-2:0];(null!==_&&"forward"===this._direction&&"floating"===_.position||"backward"===this._direction&&"floating"===e.position)&&(h.style.opacity=0)}(r=M(e.element))!==document.body&&I(r,e.element),m.call(i,d),m.call(i,p),v(document.querySelectorAll(".introjs-fixParent"),function(e){w(e,/introjs-fixParent/g)}),g(),i._lastShowElementTimer&&window.clearTimeout(i._lastShowElementTimer),i._lastShowElementTimer=window.setTimeout(function(){null!==h&&(h.innerHTML=e.step),x.innerHTML=e.intro,C.style.display="block",c.call(i,e.element,C,E,h),i._options.showBullets&&(p.querySelector(".introjs-bullets li > a.active").className="",p.querySelector('.introjs-bullets li > a[data-stepnumber="'+e.step+'"]').className="active"),p.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:"+P.call(i)+"%;",p.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",P.call(i)),C.style.opacity=1,h&&(h.style.opacity=1),null!=a&&/introjs-donebutton/gi.test(a.className)?a.focus():null!=t&&t.focus(),b.call(i,e.scrollTo,e,x)},350)}else{var A=document.createElement("div"),N=document.createElement("div"),S=document.createElement("div"),j=document.createElement("div"),O=document.createElement("div"),z=document.createElement("div"),T=document.createElement("div"),R=document.createElement("div");A.className=u,N.className="introjs-tooltipReferenceLayer",(r=M(e.element))!==document.body&&I(r,e.element),m.call(i,A),m.call(i,N),this._targetElement.appendChild(A),this._targetElement.appendChild(N),S.className="introjs-arrow",O.className="introjs-tooltiptext",O.innerHTML=e.intro,!(z.className="introjs-bullets")===this._options.showBullets&&(z.style.display="none");var $=document.createElement("ul");$.setAttribute("role","tablist");var L=function(){i.goToStep(this.getAttribute("data-stepnumber"))};v(this._introItems,function(t,n){var a=document.createElement("li"),r=document.createElement("a");a.setAttribute("role","presentation"),r.setAttribute("role","tab"),r.onclick=L,n===e.step-1&&(r.className="active"),f(r),r.innerHTML="&nbsp;",r.setAttribute("data-stepnumber",t.step),a.appendChild(r),$.appendChild(a)}),z.appendChild($),!(T.className="introjs-progress")===this._options.showProgress&&(T.style.display="none");var D=document.createElement("div");D.className="introjs-progressbar",D.setAttribute("role","progress"),D.setAttribute("aria-valuemin",0),D.setAttribute("aria-valuemax",100),D.setAttribute("aria-valuenow",P.call(this)),D.style.cssText="width:"+P.call(this)+"%;",T.appendChild(D),!(R.className="introjs-tooltipbuttons")===this._options.showButtons&&(R.style.display="none"),j.className="introjs-tooltip",j.appendChild(O),j.appendChild(z),j.appendChild(T);var B=document.createElement("span");!0===this._options.showStepNumbers&&(B.className="introjs-helperNumberLayer",B.innerHTML=e.step,N.appendChild(B)),j.appendChild(S),N.appendChild(j),(t=document.createElement("a")).onclick=function(){i._introItems.length-1!==i._currentStep&&o.call(i)},f(t),t.innerHTML=this._options.nextLabel,(n=document.createElement("a")).onclick=function(){0!==i._currentStep&&s.call(i)},f(n),n.innerHTML=this._options.prevLabel,(a=document.createElement("a")).className=this._options.buttonClass+" introjs-skipbutton ",f(a),a.innerHTML=this._options.skipLabel,a.onclick=function(){i._introItems.length-1===i._currentStep&&"function"==typeof i._introCompleteCallback&&i._introCompleteCallback.call(i),i._introItems.length-1!==i._currentStep&&"function"==typeof i._introExitCallback&&i._introExitCallback.call(i),"function"==typeof i._introSkipCallback&&i._introSkipCallback.call(i),l.call(i,i._targetElement)},R.appendChild(a),1<this._introItems.length&&(R.appendChild(n),R.appendChild(t)),j.appendChild(R),c.call(i,e.element,j,S,B),b.call(this,e.scrollTo,e,j)}var F=i._targetElement.querySelector(".introjs-disableInteraction");F&&F.parentNode.removeChild(F),e.disableInteraction&&function(){var e=document.querySelector(".introjs-disableInteraction");null===e&&((e=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(e)),m.call(this,e)}.call(i),0===this._currentStep&&1<this._introItems.length?(null!=a&&(a.className=this._options.buttonClass+" introjs-skipbutton"),null!=t&&(t.className=this._options.buttonClass+" introjs-nextbutton"),!0===this._options.hidePrev?(null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-hidden"),null!=t&&k(t,"introjs-fullbutton")):null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-disabled"),null!=a&&(a.innerHTML=this._options.skipLabel)):this._introItems.length-1===this._currentStep||1===this._introItems.length?(null!=a&&(a.innerHTML=this._options.doneLabel,k(a,"introjs-donebutton")),null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),!0===this._options.hideNext?(null!=t&&(t.className=this._options.buttonClass+" introjs-nextbutton introjs-hidden"),null!=n&&k(n,"introjs-fullbutton")):null!=t&&(t.className=this._options.buttonClass+" introjs-nextbutton introjs-disabled")):(null!=a&&(a.className=this._options.buttonClass+" introjs-skipbutton"),null!=n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),null!=t&&(t.className=this._options.buttonClass+" introjs-nextbutton"),null!=a&&(a.innerHTML=this._options.skipLabel)),n.setAttribute("role","button"),t.setAttribute("role","button"),a.setAttribute("role","button"),null!=t&&t.focus(),function(e){var t;if(e.element instanceof SVGElement)for(t=e.element.parentNode;null!==e.element.parentNode&&t.tagName&&"body"!==t.tagName.toLowerCase();)"svg"===t.tagName.toLowerCase()&&k(t,"introjs-showElement introjs-relativePosition"),t=t.parentNode;k(e.element,"introjs-showElement");var n=y(e.element,"position");for("absolute"!==n&&"relative"!==n&&"fixed"!==n&&k(e.element,"introjs-relativePosition"),t=e.element.parentNode;null!==t&&t.tagName&&"body"!==t.tagName.toLowerCase();){var a=y(t,"z-index"),r=parseFloat(y(t,"opacity")),o=y(t,"transform")||y(t,"-webkit-transform")||y(t,"-moz-transform")||y(t,"-ms-transform")||y(t,"-o-transform");(/[0-9]+/.test(a)||r<1||"none"!==o&&void 0!==o)&&k(t,"introjs-fixParent"),t=t.parentNode}}(e),void 0!==this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,e.element)}function b(e,t,n){var a,r,o;if("off"!==e&&this._options.scrollToElement&&(a="tooltip"===e?n.getBoundingClientRect():t.element.getBoundingClientRect(),r=t.element,!(0<=(o=r.getBoundingClientRect()).top&&0<=o.left&&o.bottom+80<=window.innerHeight&&o.right<=window.innerWidth))){var i=E().height;a.bottom-(a.bottom-a.top)<0||t.element.clientHeight>i?window.scrollBy(0,a.top-(i/2-a.height/2)-this._options.scrollPadding):window.scrollBy(0,a.top-(i/2-a.height/2)+this._options.scrollPadding)}}function g(){v(document.querySelectorAll(".introjs-showElement"),function(e){w(e,/introjs-[a-zA-Z]+/g)})}function v(e,t,n){if(e)for(var a=0,r=e.length;a<r;a++)t(e[a],a);"function"==typeof n&&n()}function k(e,t){if(e instanceof SVGElement){var n=e.getAttribute("class")||"";e.setAttribute("class",n+" "+t)}else void 0!==e.classList?v(t.split(" "),function(t){e.classList.add(t)}):e.className.match(t)||(e.className+=" "+t)}function w(e,t){if(e instanceof SVGElement){var n=e.getAttribute("class")||"";e.setAttribute("class",n.replace(t,"").replace(/^\s+|\s+$/g,""))}else e.className=e.className.replace(t,"").replace(/^\s+|\s+$/g,"")}function y(e,t){var n="";return e.currentStyle?n=e.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t)),n&&n.toLowerCase?n.toLowerCase():n}function x(e){var t=e.parentNode;return!(!t||"HTML"===t.nodeName)&&("fixed"===y(e,"position")||x(t))}function E(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var e=document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}function C(){var e=document.querySelector(".introjs-hintReference");if(e){var t=e.getAttribute("data-step");return e.parentNode.removeChild(e),t}}function _(e){if(this._introItems=[],this._options.hints)v(this._options.hints,function(e){var t=r(e);"string"==typeof t.element&&(t.element=document.querySelector(t.element)),t.hintPosition=t.hintPosition||this._options.hintPosition,t.hintAnimation=t.hintAnimation||this._options.hintAnimation,null!==t.element&&this._introItems.push(t)}.bind(this));else{var t=e.querySelectorAll("*[data-hint]");if(!t||!t.length)return!1;v(t,function(e){var t=e.getAttribute("data-hintanimation");t=t?"true"===t:this._options.hintAnimation,this._introItems.push({element:e,hint:e.getAttribute("data-hint"),hintPosition:e.getAttribute("data-hintposition")||this._options.hintPosition,hintAnimation:t,tooltipClass:e.getAttribute("data-tooltipclass"),position:e.getAttribute("data-position")||this._options.tooltipPosition})}.bind(this))}(function(){var e=this,t=document.querySelector(".introjs-hints");null===t&&((t=document.createElement("div")).className="introjs-hints"),v(this._introItems,function(n,a){if(!document.querySelector('.introjs-hint[data-step="'+a+'"]')){var r,o=document.createElement("a");f(o),o.onclick=(r=a,function(t){var n=t||window.event;n.stopPropagation&&n.stopPropagation(),null!==n.cancelBubble&&(n.cancelBubble=!0),T.call(e,r)}),o.className="introjs-hint",n.hintAnimation||k(o,"introjs-hint-no-anim"),x(n.element)&&k(o,"introjs-fixedhint");var i=document.createElement("div");i.className="introjs-hint-dot";var s=document.createElement("div");s.className="introjs-hint-pulse",o.appendChild(i),o.appendChild(s),o.setAttribute("data-step",a),n.targetElement=n.element,n.element=o,z.call(this,n.hintPosition,o,n.targetElement),t.appendChild(o)}}.bind(this)),document.body.appendChild(t),void 0!==this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}).call(this),D.on(document,"click",C,this,!1),D.on(window,"resize",A,this,!0)}function A(){v(this._introItems,function(e){void 0!==e.targetElement&&z.call(this,e.hintPosition,e.element,e.targetElement)}.bind(this))}function N(e){var t=document.querySelector(".introjs-hints");return t?t.querySelectorAll(e):[]}function S(e){var t=N('.introjs-hint[data-step="'+e+'"]')[0];C.call(this),t&&k(t,"introjs-hidehint"),void 0!==this._hintCloseCallback&&this._hintCloseCallback.call(this,e)}function j(e){var t=N('.introjs-hint[data-step="'+e+'"]')[0];t&&w(t,/introjs-hidehint/g)}function O(e){var t=N('.introjs-hint[data-step="'+e+'"]')[0];t&&t.parentNode.removeChild(t)}function z(e,t,n){var a=R.call(this,n);switch(e){default:case"top-left":t.style.left=a.left+"px",t.style.top=a.top+"px";break;case"top-right":t.style.left=a.left+a.width-20+"px",t.style.top=a.top+"px";break;case"bottom-left":t.style.left=a.left+"px",t.style.top=a.top+a.height-20+"px";break;case"bottom-right":t.style.left=a.left+a.width-20+"px",t.style.top=a.top+a.height-20+"px";break;case"middle-left":t.style.left=a.left+"px",t.style.top=a.top+(a.height-20)/2+"px";break;case"middle-right":t.style.left=a.left+a.width-20+"px",t.style.top=a.top+(a.height-20)/2+"px";break;case"middle-middle":t.style.left=a.left+(a.width-20)/2+"px",t.style.top=a.top+(a.height-20)/2+"px";break;case"bottom-middle":t.style.left=a.left+(a.width-20)/2+"px",t.style.top=a.top+a.height-20+"px";break;case"top-middle":t.style.left=a.left+(a.width-20)/2+"px",t.style.top=a.top+"px"}}function T(e){var t=document.querySelector('.introjs-hint[data-step="'+e+'"]'),n=this._introItems[e];
void 0!==this._hintClickCallback&&this._hintClickCallback.call(this,t,n,e);var a=C.call(this);if(parseInt(a,10)!==e){var r=document.createElement("div"),o=document.createElement("div"),i=document.createElement("div"),s=document.createElement("div");r.className="introjs-tooltip",r.onclick=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},o.className="introjs-tooltiptext";var l=document.createElement("p");l.innerHTML=n.hint;var d=document.createElement("a");d.className=this._options.buttonClass,d.setAttribute("role","button"),d.innerHTML=this._options.hintButtonLabel,d.onclick=S.bind(this,e),o.appendChild(l),o.appendChild(d),i.className="introjs-arrow",r.appendChild(i),r.appendChild(o),this._currentStep=t.getAttribute("data-step"),s.className="introjs-tooltipReferenceLayer introjs-hintReference",s.setAttribute("data-step",t.getAttribute("data-step")),m.call(this,s),s.appendChild(r),document.body.appendChild(s),c.call(this,t,r,i,null,!0)}}function R(e){var t=document.body,n=document.documentElement,a=window.pageYOffset||n.scrollTop||t.scrollTop,r=window.pageXOffset||n.scrollLeft||t.scrollLeft,o=e.getBoundingClientRect();return{top:o.top+a,width:o.width,height:o.height,left:o.left+r}}function M(e){var t=window.getComputedStyle(e),n="absolute"===t.position,a=/(auto|scroll)/;if("fixed"===t.position)return document.body;for(var r=e;r=r.parentElement;)if(t=window.getComputedStyle(r),(!n||"static"!==t.position)&&a.test(t.overflow+t.overflowY+t.overflowX))return r;return document.body}function I(e,t){e.scrollTop=t.offsetTop-e.offsetTop}function P(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}var $,L=($={},function(e,t){return $[t=t||"introjs-stamp"]=$[t]||0,void 0===e[t]&&(e[t]=$[t]++),e[t]}),D=new function(){var e="introjs_event";this._id=function(e,t,n,a){return t+L(n)+(a?"_"+L(a):"")},this.on=function(t,n,a,r,o){var i=this._id.apply(this,arguments),s=function(e){return a.call(r||t,e||window.event)};"addEventListener"in t?t.addEventListener(n,s,o):"attachEvent"in t&&t.attachEvent("on"+n,s),t[e]=t[e]||{},t[e][i]=s},this.off=function(t,n,a,r,o){var i=this._id.apply(this,arguments),s=t[e]&&t[e][i];s&&("removeEventListener"in t?t.removeEventListener(n,s,o):"detachEvent"in t&&t.detachEvent("on"+n,s),t[e][i]=null)}},B=function t(n){var a;if("object"==("undefined"==typeof n?"undefined":i(n)))a=new e(n);else if("string"==typeof n){var r=document.querySelector(n);if(!r)throw new Error("There is no element with given selector.");a=new e(r)}else a=new e(document.body);return t.instances[L(a,"introjs-instance")]=a};return B.version="2.9.3",B.instances={},B.fn=e.prototype={clone:function(){return new e(this)},setOption:function(e,t){return this._options[e]=t,this},setOptions:function(e){return this._options=function(e,t){var n,a={};for(n in e)a[n]=e[n];for(n in t)a[n]=t[n];return a}(this._options,e),this},start:function(e){return t.call(this,this._targetElement,e),this},goToStep:function(e){return function(e){this._currentStep=e-2,void 0!==this._introItems&&o.call(this)}.call(this,e),this},addStep:function(e){return this._options.steps||(this._options.steps=[]),this._options.steps.push(e),this},addSteps:function(e){if(e.length){for(var t=0;t<e.length;t++)this.addStep(e[t]);return this}},goToStepNumber:function(e){return function(e){this._currentStepNumber=e,void 0!==this._introItems&&o.call(this)}.call(this,e),this},nextStep:function(){return o.call(this),this},previousStep:function(){return s.call(this),this},exit:function(e){return l.call(this,this._targetElement,e),this},refresh:function(){return function(){if(m.call(this,document.querySelector(".introjs-helperLayer")),m.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),m.call(this,document.querySelector(".introjs-disableInteraction")),void 0!==this._currentStep&&null!==this._currentStep){var e=document.querySelector(".introjs-helperNumberLayer"),t=document.querySelector(".introjs-arrow"),n=document.querySelector(".introjs-tooltip");c.call(this,this._introItems[this._currentStep].element,n,t,e)}return A.call(this),this}.call(this),this},onbeforechange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=e,this},onchange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=e,this},onafterchange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=e,this},oncomplete:function(e){if("function"!=typeof e)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=e,this},onhintsadded:function(e){if("function"!=typeof e)throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=e,this},onhintclick:function(e){if("function"!=typeof e)throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=e,this},onhintclose:function(e){if("function"!=typeof e)throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=e,this},onexit:function(e){if("function"!=typeof e)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=e,this},onskip:function(e){if("function"!=typeof e)throw new Error("Provided callback for onskip was not a function.");return this._introSkipCallback=e,this},onbeforeexit:function(e){if("function"!=typeof e)throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=e,this},addHints:function(){return _.call(this,this._targetElement),this},hideHint:function(e){return S.call(this,e),this},hideHints:function(){return function(){v(N(".introjs-hint"),function(e){S.call(this,e.getAttribute("data-step"))}.bind(this))}.call(this),this},showHint:function(e){return j.call(this,e),this},showHints:function(){return function(){var e=N(".introjs-hint");e&&e.length?v(e,function(e){j.call(this,e.getAttribute("data-step"))}.bind(this)):_.call(this,this._targetElement)}.call(this),this},removeHints:function(){return function(){v(N(".introjs-hint"),function(e){O.call(this,e.getAttribute("data-step"))}.bind(this))}.call(this),this},removeHint:function(e){return O.call(this,e),this},showHintDialog:function(e){return T.call(this,e),this}},B})},380:function(e,t,n){(function(e){"use strict";function n(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l="rgba( 51, 51, 51, .87 )",c="rgba( 51, 51, 51, .54 )",d="rgba( 51, 51, 51, .38 )",p="rgba( 238, 238, 238, 1 )",u="rgba( 224, 224, 224, 1 )",m="transparent",f="rgba( 255, 255, 255, 1 )",h=function(){var e={root:{display:"flex",flexDirection:"column"},header:{display:"block",paddingLeft:"72px",textAlign:"left",color:l,fontSize:"1.5rem",fontWeight:700},list_item:{display:"flex",justifyContent:"center",alignItems:"center",height:"56px"},pri_item:{},pri_item_text:{display:"block",minWidth:"40px",minHeight:"40px",margin:"0 16px",padding:0,lineHeight:"40px",fontWeight:600,borderRadius:"50%",color:l,backgroundColor:m},sec_item:{},sec_item_text:{display:"-webkit-box",WebkitLineClamp:1,"-webkit-box-orient":"vertical",margin:"0 16px",minWidth:"50px",overflow:"hidden",textOverflow:"ellipsis",color:l,backgroundColor:m},state_none:{width:0,opacity:0,visibility:"hidden",paddingLeft:"72px"},state_avatar:{display:"block",minWidth:"40px",minHeight:"40px",margin:"0 16px",padding:0,lineHeight:"40px",borderRadius:"50%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},state_icon:{display:"block",minWidth:"24px",minHeight:"24px",margin:"8px 24px",padding:0,lineHeight:"24px",borderRadius:"50%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},state_action:{},content:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%"},link:{display:"-webkit-box",flexShrink:1,WebkitLineClamp:1,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left",fontSize:"1.6rem",color:l},subtitle:{display:"-webkit-box",flexShrink:2,WebkitLineClamp:1,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left",color:c},action:{display:"block",position:"relative",margin:"0 16px 0 0",padding:0},action_icon:{display:"block",width:"27px",height:"27px",lineHeight:"27px",borderRadius:"50%",cursor:"pointer",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:"url()"},action_items:{display:"block",position:"absolute",top:0,right:0,margin:0,padding:"8px 0",minWidth:"150px",backgroundColor:f,borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px",opacity:0,transformOrigin:"left top 0px",transform:"scaleY(0)",transition:"transform 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, opacity 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms",zIndex:0},action_items_active:{opacity:1,transform:"scaleY(1)",zIndex:100},action_items_over:{backgroundColor:p,transition:"all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms"},action_bg:{display:"none",position:"fixed",top:0,left:0,width:"100%",height:"100%"},action_group:{},action_item:{display:"-webkit-box",WebkitLineClamp:1,"-webkit-box-orient":"vertical",margin:0,padding:"0 24px",height:"32px",color:l,fontSize:"1.2rem",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",textAlign:"left",lineHeight:"32px",cursor:"pointer",transition:"all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms"},hr:{margin:"8px 0",height:"1px",border:"none",backgroundColor:u},disable:{color:d,cursor:"not-allowed"}};return e},b=function(t){var n=t.idx,a=t.url,r=t.title,o=t.desc,i=t.style,l=t.acIconWaves,c=t.acItemWaves,d=t.priType,p=t.priValue,u=t.secType,m=t.secValue,f=t.action,h=t.events,b=t.contentStyle?s({},t.contentStyle):s({},i.content),g="text"==d?s({},i["pri_item_"+d]):s({},i["state_"+d]),v="text"==u?s({},i["sec_item_"+u]):s({},i["state_"+u]),k=["avatar","icon"].includes(d)?"":p,w=["avatar","icon"].includes(u)?"":m;t.priStyle&&(g=s({},t.priStyle)),t.secStyle&&(v=s({},t.secStyle)),["avatar","icon"].includes(d)&&(g.backgroundImage="url("+p+")"),["avatar","icon"].includes(u)&&(v.backgroundImage="url("+m+")"),"none"==d&&(g=s({},g,i.state_none)),"none"==u&&(v=s({},v,i.state_none)),t.priBgColor&&(g.backgroundColor=t.priBgColor),t.secBgColor&&(v.backgroundColor=t.secBgColor);var y=r;window.navigator.userAgent.toLowerCase().includes("firefox")&&(i.subtitle.display="none",y.length>26&&(y=y.substring(0,26)+"..."));var x=f?f.map(function(n){var a=n.id,r=n.title,o=n.disable,l=n.hr,d=o?s({},i.action_item,i.disable):s({},i.action_item);return e.createElement("action-group",null,e.createElement("action-item",{style:d,id:a,class:c,onClick:!o&&function(e){return h.itemOnClick(e,t)},onMouseOver:function(e){return h.itemMouseOver(e)}},r),l&&e.createElement("hr",{style:i.hr}))}):void 0;return e.createElement("list-item",{idx:n,style:i.list_item},e.createElement("pri-item",{style:g,onClick:function(e){return h.priOnClick(e,t)}},k),e.createElement("content",{style:b,"data-tooltip":y,"data-tooltip-position":"up"},e.createElement("a",{style:i.link,href:a,target:"_blank"},y),e.createElement("subtitle",{style:i.subtitle},o)),e.createElement("sec-item",{style:v,onClick:function(e){return h.secOnClick(e,t)}},w),e.createElement("action",{style:i.action},e.createElement("action-icon",{style:i.action_icon,class:l,onClick:function(e){return h.iconOnClick(e)}}),e.createElement("action-items",{style:i.action_items},x),e.createElement("action-bg",{style:i.action_bg,onClick:function(e){return h.bgOnClick(e)}})))},g=function(t){function l(){var e,t,n,o;a(this,l);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return t=n=r(this,(e=l.__proto__||Object.getPrototypeOf(l)).call.apply(e,[this].concat(s))),n.style=h(),o=t,r(n,o)}return o(l,t),i(l,[{key:"acIconOnClick",value:function(e){var t=s({},this.style);$(e.target).next().css(s({},t.action_items,t.action_items_active)),$(e.target).parent().find("action-bg").css("display","block")}},{key:"acBgOnClick",value:function(e){var t=s({},this.style);$(e.target).css("display","none").prev().css(s({},t.action_items))}},{key:"acItemOnClick",value:function(e,t){var n=$(e.target),a=n.attr("id"),r=n.text(),o=s({},this.style);n.parent().parent().css(s({},o.action_items)).next().css("display","none"),this.props.onAction&&this.props.onAction(e,a,r,t)}},{key:"acItemMouseOver",value:function(e){var t=$(e.target);t.is("action-item")&&($("action-item[active=true]").css("background-color","transparent").attr("active",!1),t.attr("active",!0).css("background-color","rgb(238, 238, 238)"))}},{key:"priOnClick",value:function(e,t){this.props.priOnClick&&this.props.priOnClick(e,t)}},{key:"secOnClick",value:function(e,t){this.props.secOnClick&&this.props.secOnClick(e,t)}},{key:"render",value:function(){var t=this,a=s({},this.style),r=this.props,o=r.items,i=r.title,l=r.actionItems,c=n(r,["items","title","actionItems"]),d=o.map(function(n){var r={iconOnClick:function(e){return t.acIconOnClick(e)},bgOnClick:function(e){return t.acBgOnClick(e)},itemOnClick:function(e,n){return t.acItemOnClick(e,n)},itemMouseOver:function(e){return t.acItemMouseOver(e)},priOnClick:function(e,n){return t.priOnClick(e,n)},secOnClick:function(e,n){return t.secOnClick(e,n)}};return e.createElement(b,s({},n,c,{action:l,events:r,style:s({},a)}))});return e.createElement("list",{style:a.root},e.createElement("list-header",{style:a.header},i),d)}}]),l}(e.Component);g.defaultProps={title:"",items:[],actionItems:[],acIconWaves:"",acItemWaves:"",priStyle:void 0,secStyle:void 0,contentStyle:void 0,priBgColor:"",secBgColor:""},g.PropTypes={title:e.PropTypes.string,items:e.PropTypes.array,actionItems:e.PropTypes.array,onAction:e.PropTypes.func,acIconWaves:e.PropTypes.string,acItemWaves:e.PropTypes.string,priStyle:e.PropTypes.object,secStyle:e.PropTypes.object,contentStyle:e.PropTypes.object,priBgColor:e.PropTypes.string,secBgColor:e.PropTypes.string},t.default=g}).call(t,n(2))},381:function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){$("side").velocity({left:0},{progress:function(e,t){$("side").css("opacity",t),$("mask").css("opacity",t).css("display","block")}}),$("side close").velocity({left:230}),$("side pin").velocity({left:230}),s(),l()}function s(){if(!($("sidebar content toc").length>0)){var e=[],t=new Map;$("tabs").find("tab-label a").map(function(t,n){return e.push($(n).attr("value"))}),e.forEach(function(e,n){var a=[];$($("tabs tab-group")[n]).find("[data-head-level]").map(function(e,t){var n=$(t),r="sr-toc-"+e,o=n.attr("data-head-level"),i=n.attr("data-head-title")||n.text();a.push({id:r,level:o,text:i}),n.attr("id",r)}),t.set(e,a)}),$("sidebar content").find("a").map(function(n,a){var r="",o=$(a),i=o.attr("value"),s=t.get(i);e[n]&&s.forEach(function(t){r+='<outline class="md-waves-effect" data-trigger="'+e[n]+'" data-id="'+t.id+'" class="toc-level-'+t.level+'">'+t.text+"</outline>"}),r.length>0?o.after('<arrow class="md-waves-effect"><i class="arrow fas fa-angle-up"></i></arrow><toc><i></i>'+r+"</toc>"):o.after('<arrow class="md-waves-effect"><i class="arrow fas fa-external-link-alt"></i></arrow>')}),$("sidebar content arrow").on("click",function(e){$(e.currentTarget).toggleClass("active").next().slideToggle()}),$("sidebar content toc outline").on("click",function(e){var t=$(e.currentTarget).attr("data-id"),n=$(e.currentTarget).attr("data-trigger");location.hash.endsWith(n)||$("tabs").find("tab-label a[value="+n+"]")[0].click(),$("tabs").find("tab-group[active=true]").find("#"+t)[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})})}}function l(){$("sidebar content").find("a").map(function(e,t){var n=$(t),a=n.attr("value");location.hash.endsWith(a)?n.addClass("active"):n.removeClass("active")})}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p="rgb(90, 90, 90)",u="#fff",m=function(){var e,t,n="24px",a="65px",r=230,i="40px",s="1px solid rgba(0, 0, 0, 0.06)",l={root:{display:"flex",flexDirection:"column",position:"fixed",top:0,left:0-r,width:r+"px",height:"100%",fontSize:"1.4rem",fontWeight:500,color:p,backgroundColor:u,opacity:0,transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",boxShadow:"0 2px 5px rgb(0 0 0 / 26%)",zIndex:2001},header:{display:"flex",alignItems:"center",paddingLeft:n,paddingRight:n,width:"100%",height:a,fontSize:"1.6rem",textTransform:"uppercase",borderBottom:s},content:{display:"block",position:"relative",width:"100%",height:"100%",fontSize:"1.3rem",overflowY:"auto"},footer:{display:"flex",alignItems:"center",marginTop:"8px",width:"100%",height:a,borderTop:s},ul:{margin:0,padding:0,width:"100%",listStyleType:"none",transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},ul_sub:{marginTop:"-200px"},li:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",position:"relative",minHeight:i},sub_menu:{width:"100%",overflow:"hidden"},dropdown:{display:"block",position:"absolute",width:"20px",height:"20px",top:"10px",right:0,border:"none",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:"url( )"},dropup:{backgroundImage:"url( )"},link:{display:"flex",alignItems:"center",margin:0,padding:"12px 48px 12px 24px",width:"100%",minHeight:i,color:p,fontSize:"1.4rem"},large_link:{paddingLeft:0,fontSize:"2.2rem"},icon:{display:"block",marginLeft:"2px",marginRight:n,width:"21px",height:"21px",border:"none",backgroundPosition:"center",backgroundRepeat:"no-repeat"},text:{display:"block"},mask:{display:"none",position:"fixed",top:0,left:0,width:"100%",height:"100%",opacity:0,pointerEvents:"none",zIndex:2e3},font_icon:(e={display:"flex",justifyContent:"center",alignItems:"center",marginRight:"12px",fontSize:"18px",color:"5f6368",order:-1},o(e,"display","block"),o(e,"width","24px"),o(e,"height","24px"),o(e,"fontSize","14px"),o(e,"border","none"),e),close_icon:{position:"absolute",top:"0",left:"-230px",display:"flex",justifyContent:"center",alignItems:"center",width:"48px",height:"48px",color:"#5f6368",backgroundColor:"#fff",fontSize:"2rem",border:"none",cursor:"pointer"},pin:{position:"absolute",top:"48px",left:"-230px",display:"flex",justifyContent:"center",alignItems:"center",width:"48px",height:"48px",color:"#5f6368",backgroundColor:"#fff",fontSize:"2rem",border:"none",cursor:"pointer"},pin_active:{color:"#195bf7"},pin_icon:(t={display:"flex",justifyContent:"center",alignItems:"center",fontSize:"18px",order:-1,width:"35px",height:"35px"},o(t,"fontSize","14px"),o(t,"border","none"),t)};return l},f=function(t){var n={},a=d({},t.style.link);t.fontIcon?(n=d({},t.style.font_icon),n.display="flex"):t.icon?(n=d({},t.style.icon),n.display="block",n.backgroundImage="url("+t.icon+")"):n.display="none",t.large&&(a=d({},t.style.link,t.style.large_link));var r=t.tooltip;return e.createElement("a",{style:a,className:t.route&&t.waves,target:t.route&&t.route.startsWith("#")?"_self":"_blank",href:t.route,value:t.value,"data-tooltip":r.text?r.text:t[r.target],"data-tooltip-position":r.position,"data-tooltip-delay":r.delay,onClick:t.route&&t.onClick&&function(e){return t.onClick(e)}},e.createElement("icon",{style:n,dangerouslySetInnerHTML:{__html:t.fontIcon||""}}),e.createElement("text",{style:t.style.text},t.name))},h=function(t){function o(){var e,t,r,i;n(this,o);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return t=r=a(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(l))),r.state={pined:r.props.pined},r.style=m(),i=t,a(r,i)}return r(o,t),c(o,[{key:"onClick",value:function(e){for(var t=$(e.target);!t.is("a");)t=t.parent();var n=[t.text(),t.attr("value"),t.attr("href")],a=n[0],r=n[1],o=n[2];t.parent().parent().find("a").removeClass("active"),t.addClass("active"),this.props.onClick&&this.props.onClick(t,{name:a,value:r,href:o}),this.props.autoClose&&this.maskOnClick()}},{key:"liOnClick",value:function(e){var t=$(e.target),n=0;if(t.is("dropdown"))t=t.parent().parent();else if(t.is("sub-menu"))t=t.parent();else for(;!t.is("a");){if(n>10)return;t=t.parent(),n++}t=t.parent();var a=d({},this.style),r=t.find("ul"),o=t.find("dropdown").attr("data-state");"down"==o?(t.find("dropdown").attr("data-state","up").css(d({},a.dropdown,a.dropup)),r.css(d({},a.ul))):(t.find("dropdown").attr("data-state","down").css(d({},a.dropdown)),a.ul_sub.marginTop=r.attr("data-margin-top"),r.css(d({},a.ul,a.ul_sub)))}},{key:"maskOnClick",value:function(e){var t=this;$("side").velocity({left:0-Number.parseInt($("side").width())},{progress:function(e,t){$("side").css("opacity",1-t),$("mask").css("opacity",1-t)},complete:function(){$("sidebar").css("left",0-Number.parseInt($("side").width())),$("mask").css("display","none"),$("side close").velocity({left:0-Number.parseInt($("side").width())}),t.props.onExit&&t.props.onExit()}})}},{key:"pinOnClick",value:function(){this.setState({pined:!this.state.pined}),this.props.onPin&&this.props.onPin()}},{key:"render",value:function(){var t=this,n=[],a=d({},this.style),r=this.props,o=r.items,i=r.width,s=r.header,l=r.icon,c=r.footer,p=r.showClose,u=r.color,m=r.bgColor,h=r.headerStyle,b=r.contentStyle,g=r.footerStyle,v=r.maskStyle;i&&(a.root.width=i),i&&(a.root.left=0-Number.parseInt(i)),u&&(a.text.color=u),m&&(a.root.backgroundColor=m),h&&(a.header=d({},a.header,h)),b&&(a.content=d({},a.content,b)),g&&(a.footer=d({},a.footer,g)),v&&(a.mask=d({},a.mask,v));var k=function(e){return e.map(function(e){return w(e)})},w=function(n){return n.items&&n.items.length>0&&(a.ul_sub.marginTop=0-n.items.length*Number.parseInt(a.li.minHeight)),e.createElement("li",{style:a.li,onClick:n.items&&function(e){return t.liOnClick(e)}},e.createElement(f,{style:a,waves:t.props.waves,tooltip:t.props.tooltip,icon:n.icon,fontIcon:n.fontIcon||"",name:n.name,value:n.value,route:n.route,onClick:!n.items&&function(e){return t.onClick(e)}}),n.items&&n.items.length>0&&e.createElement("sub-menu",{style:a.sub_menu},e.createElement("dropdown",{style:a.dropdown,"data-state":"down"}),e.createElement("ul",{"data-margin-top":a.ul_sub.marginTop,style:d({},a.ul,a.ul_sub)},k(n.items))))};return o&&(n=o.map(function(e){return w(e)})),e.createElement("sidebar",null,e.createElement("side",{style:a.root},s&&e.createElement("header",{style:a.header},e.createElement(f,{style:a,icon:l,name:s,large:!0,waves:this.props.waves,tooltip:this.props.tooltip,onClick:function(e){return t.onClick(e)}})),e.createElement("content",{style:a.content},n.length>0&&e.createElement("ul",{style:a.ul},n)),c&&e.createElement("footer",{style:a.footer},e.createElement(f,{style:a,name:c,waves:this.props.waves,tooltip:this.props.tooltip,onClick:function(e){return t.onClick(e)}})),p&&e.createElement("close",{className:this.props.waves,style:a.close_icon,onClick:function(){return t.maskOnClick()}},e.createElement("div",{className:"hamburger hamburger--arrow js-hamburger is-active"},e.createElement("div",{className:"hamburger-box"},e.createElement("div",{className:"hamburger-inner"})))),p&&e.createElement("pin",{className:this.props.waves,style:this.state.pined?d({},a.pin,a.pin_active):a.pin,onClick:function(){return t.pinOnClick()}},e.createElement("icon",{style:a.pin_icon},e.createElement("i",{className:"fas fa-thumbtack"})))),e.createElement("mask",{style:a.mask,onClick:function(e){return t.maskOnClick(e)}}))}}]),o}(e.Component);h.defaultProps={pinde:!1,icon:void 0,header:void 0,footer:void 0,width:"",items:[],position:"left",color:void 0,bgColor:void 0,headerStyle:void 0,contentStyle:void 0,footerStyle:void 0,maskStyle:void 0,waves:"",autoClose:!0,showClose:!1,tooltip:{}},h.propTypes={pined:e.PropTypes.bool,icon:e.PropTypes.string,header:e.PropTypes.string,footer:e.PropTypes.string,width:e.PropTypes.string,items:e.PropTypes.array,position:e.PropTypes.oneOf(["left","right"]),color:e.PropTypes.string,bgColor:e.PropTypes.string,headerStyle:e.PropTypes.object,contentStyle:e.PropTypes.object,footerStyle:e.PropTypes.object,maskStyle:e.PropTypes.object,autoClose:e.PropTypes.bool,showClose:e.PropTypes.bool,waves:e.PropTypes.string,tooltip:e.PropTypes.object,onClick:e.PropTypes.func,onExit:e.PropTypes.func},t.Sidebar=h,t.Open=i}).call(t,n(2))},382:function(e,t,n){(function(e){"use strict";function n(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c="rgba(255, 255, 255, .7)",d="rgba(204, 204, 204, 1)",p="rgba(255, 255, 255, 1)",u="transparent",m=function(){var e={root:{display:"block",width:"100%"},header:{display:"flex",justifyContent:"flex-start",alignItems:"flex-end",position:"relative",width:"100%",backgroundColor:u,overflowX:"hidden"},labs:{display:"flex",transition:"all 250ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},label:{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",padding:"0 24px",width:"100%",minWidth:"104px",height:"48px",color:c,backgroundColor:"transparent",fontSize:"1.4rem",textTransform:"uppercase"},label_active:{color:p,fontWeight:500},link:{color:"inherit",backgroundColor:"transparent",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textDecoration:"none"},link_disable:{color:d,cursor:"not-allowed"},link_icon:{display:"flex",flexDirection:"row",alignItems:"center"},icon:i({display:"block",width:"25px",height:"25px",border:"none",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"60%"},"backgroundPosition","center"),border:{display:"block",position:"absolute",left:0,bottom:0,width:"100%",height:"4px",backgroundColor:"#EEFF41",transform:"scaleX(0)",transition:"all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},border_active:{transform:"scaleX(1)"},shadow:{display:"block",position:"absolute",left:0,bottom:0,width:"100%",height:"4px",boxShadow:"0 1px 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .26)"},groups:{display:"block",width:"100%"},group:{display:"none"},group_active:{display:"block",opacity:1},scroll_left:{position:"absolute",top:"15px",left:"5px",opacity:0},scroll_right:{position:"absolute",top:"15px",right:"5px"}};return e},f=function(t){var n=t.route&&""!=t.route?t.route:"#",a=!!t.disable,r=t.tooltip.text?t.tooltip.text:t[t.tooltip.target],o=t.style,i=n.startsWith("#")?void 0:"_blank";return t.active&&(o.label=l({},o.label,o.label_active)),t.active&&(o.border=l({},o.border,o.border_active)),t.disable&&(o.link=l({},o.link,o.link_disable)),t.icon&&""!=t.icon?(o.icon.display="block",o.icon.backgroundImage="url("+t.icon+")",o.link=l({},o.link,o.link_icon)):o.icon.display="none",e.createElement("tab-label",{style:o.label,class:t.waves,active:t.active,onClick:!a&&function(e){return t.onClick(e)}},e.createElement("a",{style:o.link,id:t.idx,href:n,target:i,"data-tooltip":r,"data-tooltip-position":t.tooltip.position,"data-tooltip-delay":t.tooltip.delay,value:t.value,disabled:a},t.name,e.createElement("tab-icon",{style:o.icon})),e.createElement("tab-border",{style:o.border}))},h=function(t){function i(){var e,t,n,o;a(this,i);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return t=n=r(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(l))),n.style=m(),o=t,r(n,o)}return o(i,t),s(i,[{key:"componentWillUnmount",value:function(){$("tabs").remove()}},{key:"tabLabelOnClick",value:function(e){var t=$(e.target);if(t.is("tab-label")){var n=t.find("a");return void(n[0]&&n[0].click())}t.is("a")||(t=t.parent());var a=t.attr("href");if(a.startsWith("#")){var r=l({},this.style),o=t.attr("id"),i=(t.attr("value"),t.text(),$("tab-label[active=true]"));
$("tab-label[active=true]").attr("active",!1).css(l({},r.label)).find("tab-border").css(l({},r.border)),t.parent().attr("active",!0).css(l({},r.label,r.label_active)).find("tab-border").css(l({},r.border,r.border_active)),$("tab-group[active=true]").attr("active",!1).velocity({opacity:0},{complete:function(e){$(e).css(l({},r.group)),$($("tab-group")[o]).attr("active",!0).css(l({},r.group,r.group_active))}}),this.props.items.length>this.props.max&&(o<=this.props.items.length-this.props.max&&$("tab-scroll-left").click(),o>=this.props.max-1&&$("tab-scroll-right").click()),this.props.onChange&&this.props.onChange(i,t,e)}}},{key:"tabScrollOnClick",value:function(e,t){var n=parseInt($("tab-label").css("width")),a=(this.props.items.length-this.props.max)*n;"right"==e?($("tab-labs").css("transform","translateX("+(0-a)+"px)"),$("tab-scroll-left").css("opacity",1),$("tab-scroll-right").css("opacity",0)):($("tab-labs").velocity({translateX:0}),$("tab-scroll-right").css("opacity",1),$("tab-scroll-left").css("opacity",0))}},{key:"render",value:function(){var t=this,a=l({},this.style),r=this.props,o=r.items,i=r.color,s=r.activeColor,c=r.bgColor,d=r.headerStyle,p=r.groupsStyle,u=r.borderStyle,m=r.children,h=n(r,["items","color","activeColor","bgColor","headerStyle","groupsStyle","borderStyle","children"]);i&&(a.label.color=i),c&&(a.header.backgroundColor=c),s&&(a.label_active.color=s),d&&(a.header=l({},a.header,d)),p&&(a.groups=l({},a.groups,p)),u&&(a.border=l({},a.border,u));var b=o&&o.map(function(n,r){var o={label:a.label,border:a.border,link:a.link,link_icon:a.link_icon,icon:a.icon,link_disable:a.link_disable,label_active:a.label_active,border_active:a.border_active};return e.createElement(f,l({idx:r},n,h,{style:o,onClick:function(e){return t.tabLabelOnClick(e)}}))}),g=o.length>this.props.max?e.createElement("tab-scroll",null,e.createElement("tab-scroll-left",{class:this.props.waves,style:a.scroll_left,dangerouslySetInnerHTML:{__html:this.props.scrollLeft},onClick:function(e){return t.tabScrollOnClick("left",e)}}),e.createElement("tab-scroll-right",{class:this.props.waves,style:a.scroll_right,dangerouslySetInnerHTML:{__html:this.props.scrollRight},onClick:function(e){return t.tabScrollOnClick("right",e)}})):"",v=b&&e.createElement("tab-header",{style:a.header},e.createElement("tab-labs",{style:a.labs},b),e.createElement("tab-shadow",{style:a.shadow}),g),k=o.findIndex(function(e){return e.active}),w=m&&m.map(function(t,n){var r=k==n?l({},a.group,a.group_active):l({},a.group);return e.createElement("tab-group",{style:r,active:k==n},t)}),y=w&&e.createElement("tab-groups",{style:a.groups},w);return e.createElement("tabs",{style:a.root},v,y)}}]),i}(e.Component);h.defaultProps={items:[],color:"",activeColor:"",bgColor:"",headerStyle:void 0,groupsStyle:void 0,borderStyle:void 0,waves:"",tooltip:"",max:8,scrollLeft:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M675.11798 267.269064L430.406848 511.992078l244.710142 244.723015a38.453744 38.453744 0 0 1-54.380252 54.383222l-271.900267-271.91116a38.455724 38.455724 0 0 1 0-54.382232l271.900267-271.91116a38.453744 38.453744 0 0 1 54.381242 54.375301z" fill="#ffffff"></path></svg>',scrollRight:'<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M675.11699 539.183194l-271.900268 271.91116a38.453744 38.453744 0 0 1-54.380251-54.383222l244.710141-244.723014-244.710141-244.719054a38.453744 38.453744 0 0 1 54.380251-54.383222l271.900268 271.91116a38.455724 38.455724 0 0 1 0 54.386192z" fill="#ffffff"></path></svg>'},h.propTypes={items:e.PropTypes.array,color:e.PropTypes.string,activeColor:e.PropTypes.string,bgColor:e.PropTypes.string,headerStyle:e.PropTypes.object,groupsStyle:e.PropTypes.object,borderStyle:e.PropTypes.object,waves:e.PropTypes.string,tooltip:e.PropTypes.string,onChange:e.PropTypes.func},t.default=h}).call(t,n(2))},589:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'.introjs-overlay{position:absolute;box-sizing:content-box;z-index:999999;background-color:#000;opacity:0;background:-webkit-gradient(radial,center center,0,center center,100%,color-stop(0,rgba(0,0,0,.4)),color-stop(100%,rgba(0,0,0,.9)));background:-webkit-radial-gradient(center,ellipse farthest-corner,rgba(0,0,0,.4) 0,rgba(0,0,0,.9) 100%);background:radial-gradient(center,ellipse farthest-corner,rgba(0,0,0,.4) 0,rgba(0,0,0,.9) 100%);-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.introjs-fixParent{z-index:auto!important;opacity:1!important;-webkit-transform:none!important;transform:none!important}.introjs-showElement,tr.introjs-showElement>td,tr.introjs-showElement>th{z-index:9999999!important}.introjs-disableInteraction{z-index:99999999!important;position:absolute;background-color:#fff;opacity:0}.introjs-relativePosition,tr.introjs-showElement>td,tr.introjs-showElement>th{position:relative}.introjs-helperLayer{z-index:9999998;background-color:#fff;background-color:hsla(0,0%,100%,.9);border:1px solid #777;border:1px solid rgba(0,0,0,.5);border-radius:4px;box-shadow:0 2px 15px rgba(0,0,0,.4)}.introjs-helperLayer,.introjs-tooltipReferenceLayer{box-sizing:content-box;position:absolute;-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.introjs-tooltipReferenceLayer{visibility:hidden;z-index:100000000;background-color:transparent}.introjs-helperLayer *,.introjs-helperLayer :after,.introjs-helperLayer :before{-ms-box-sizing:content-box;-o-box-sizing:content-box;box-sizing:content-box}.introjs-helperNumberLayer{box-sizing:content-box;position:absolute;visibility:visible;top:-16px;left:-16px;z-index:9999999999!important;padding:2px;font-family:Arial,verdana,tahoma;font-size:13px;font-weight:700;color:#fff;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.3);background:#ff3019;background:-webkit-linear-gradient(top,#ff3019,#cf0404);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ff3019),color-stop(100%,#cf0404));background:linear-gradient(180deg,#ff3019 0,#cf0404);width:20px;height:20px;line-height:20px;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.4)}.introjs-arrow{border:5px solid transparent;content:"";position:absolute}.introjs-arrow.top,.introjs-arrow.top-right{top:-10px;border-bottom-color:#fff}.introjs-arrow.top-right{right:10px}.introjs-arrow.top-middle{top:-10px;left:50%;margin-left:-5px;border-bottom-color:#fff}.introjs-arrow.right{right:-10px;top:10px;border-left-color:#fff}.introjs-arrow.right-bottom{bottom:10px;right:-10px;border-left-color:#fff}.introjs-arrow.bottom,.introjs-arrow.bottom-right{bottom:-10px;border-top-color:#fff}.introjs-arrow.bottom-right{right:10px}.introjs-arrow.bottom-middle{bottom:-10px;left:50%;margin-left:-5px;border-top-color:#fff}.introjs-arrow.left{left:-10px;top:10px;border-right-color:#fff}.introjs-arrow.left-bottom{left:-10px;bottom:10px;border-right-color:#fff}.introjs-tooltip{box-sizing:content-box;position:absolute;visibility:visible;padding:10px;background-color:#fff;min-width:200px;max-width:300px;border-radius:3px;box-shadow:0 1px 10px rgba(0,0,0,.4);-webkit-transition:opacity .1s ease-out;transition:opacity .1s ease-out}.introjs-tooltipbuttons{text-align:right;white-space:nowrap}.introjs-button{box-sizing:content-box;position:relative;overflow:visible;display:inline-block;padding:.3em .8em;border:1px solid #d4d4d4;margin:0;text-decoration:none;text-shadow:1px 1px 0 #fff;font:11px/normal sans-serif;color:#333;white-space:nowrap;cursor:pointer;outline:0;background-color:#ececec;background-image:-webkit-gradient(linear,0 0,0 100%,from(#f4f4f4),to(#ececec));background-image:-webkit-linear-gradient(#f4f4f4,#ececec);background-image:linear-gradient(#f4f4f4,#ececec);-webkit-background-clip:padding;-moz-background-clip:padding;-o-background-clip:padding-box;border-radius:.2em;zoom:1;margin-top:10px}.introjs-button:hover{border-color:#bcbcbc;text-decoration:none;box-shadow:0 1px 1px #e3e3e3}.introjs-button:active,.introjs-button:focus{background-image:-webkit-gradient(linear,0 0,0 100%,from(#ececec),to(#f4f4f4));background-image:-webkit-linear-gradient(#ececec,#f4f4f4);background-image:linear-gradient(#ececec,#f4f4f4)}.introjs-button::-moz-focus-inner{padding:0;border:0}.introjs-skipbutton{box-sizing:content-box;margin-right:5px;color:#7a7a7a}.introjs-prevbutton{border-radius:.2em 0 0 .2em;border-right:none}.introjs-prevbutton.introjs-fullbutton{border:1px solid #d4d4d4;border-radius:.2em}.introjs-nextbutton{border-radius:0 .2em .2em 0}.introjs-nextbutton.introjs-fullbutton{border-radius:.2em}.introjs-disabled,.introjs-disabled:focus,.introjs-disabled:hover{color:#9a9a9a;border-color:#d4d4d4;box-shadow:none;cursor:default;background-color:#f4f4f4;background-image:none;text-decoration:none}.introjs-hidden{display:none}.introjs-bullets{text-align:center}.introjs-bullets ul{box-sizing:content-box;clear:both;margin:15px auto 0;padding:0;display:inline-block}.introjs-bullets ul li{box-sizing:content-box;list-style:none;float:left;margin:0 2px}.introjs-bullets ul li a{box-sizing:content-box;display:block;width:6px;height:6px;background:#ccc;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;text-decoration:none;cursor:pointer}.introjs-bullets ul li a.active,.introjs-bullets ul li a:hover{background:#999}.introjs-progress{box-sizing:content-box;overflow:hidden;height:10px;margin:10px 0 5px;border-radius:4px;background-color:#ecf0f1}.introjs-progressbar{box-sizing:content-box;float:left;width:0;height:100%;font-size:10px;line-height:10px;text-align:center;background-color:#08c}.introjsFloatingElement{position:absolute;height:0;width:0;left:50%;top:50%}.introjs-fixedTooltip{position:fixed}.introjs-hint{box-sizing:content-box;position:absolute;background:0 0;width:20px;height:15px;cursor:pointer}.introjs-hint:focus{border:0;outline:0}.introjs-hidehint{display:none}.introjs-fixedhint{position:fixed}.introjs-hint:hover>.introjs-hint-pulse{border:5px solid rgba(60,60,60,.57)}.introjs-hint-pulse{box-sizing:content-box;width:10px;height:10px;border:5px solid rgba(60,60,60,.27);border-radius:30px;background-color:hsla(0,0%,53%,.24);z-index:10;position:absolute;-webkit-transition:all .2s ease-out;transition:all .2s ease-out}.introjs-hint-no-anim .introjs-hint-dot{-webkit-animation:none;animation:none}.introjs-hint-dot{box-sizing:content-box;border:10px solid hsla(0,0%,57%,.36);background:0 0;border-radius:60px;height:50px;width:50px;-webkit-animation:introjspulse 3s ease-out;animation:introjspulse 3s ease-out;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;position:absolute;top:-25px;left:-25px;z-index:1;opacity:0}@-webkit-keyframes introjspulse{0%{-webkit-transform:scale(0);opacity:0}25%{-webkit-transform:scale(0);opacity:.1}50%{-webkit-transform:scale(.1);opacity:.3}75%{-webkit-transform:scale(.5);opacity:.5}to{-webkit-transform:scale(1);opacity:0}}@keyframes introjspulse{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}25%{-webkit-transform:scale(0);transform:scale(0);opacity:.1}50%{-webkit-transform:scale(.1);transform:scale(.1);opacity:.3}75%{-webkit-transform:scale(.5);transform:scale(.5);opacity:.5}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.introjs-arrow{pointer-events:none}.introjs-arrow.top{position:inherit;top:inherit;left:inherit;width:inherit;height:inherit;background-color:transparent;overflow:inherit;-webkit-transition:inherit;transition:inherit;border-bottom-color:transparent}.introjs-arrow.bottom{border-top-color:transparent}.introjs-tooltip{min-width:350px;color:#fff;background:#4285f4;border:none #4285f4;box-shadow:0 0 4px rgba(0,0,0,.12),0 4px 16px rgba(0,0,0,.12)}.introjs-button{color:#fff;background-color:#4285f4;background-image:none;font-size:13px;text-shadow:none;text-decoration:none!important;border:none}.introjs-button:hover{font-weight:700;border-color:none;box-shadow:none}.introjs-button:active,.introjs-button:focus{background-image:none}.introjs-prevbutton.introjs-fullbutton{border:none}.introjs-tooltiptext{font-size:14px}.introjs-tooltiptext a{color:#fff;font-weight:400;text-decoration:underline}.introjs-bullets ul li a.active{background-color:#fff}.introjs-bullets ul li a{background-color:#999}.introjs-helperNumberLayer{display:none}',""])},590:function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'/*!\n * React Material Design Style\n * \n * @version : 0.0.1\n * @update  : 2019/12/29\n * @homepage: https://github.com/kenshin/mduikit\n * @author  : Kenshin Wang <kenshin@ksria.com>\n * \n * @copyright 2019\n */sidebar side content{overflow-y:hidden}sidebar side content:hover{overflow-y:overlay}sidebar side content{background-color:transparent}sidebar side content::-webkit-scrollbar{width:12px}sidebar side content::-webkit-scrollbar-thumb{background-clip:padding-box;padding-top:80px;background-color:#ddd;border:3px solid transparent;border-radius:8px}sidebar side content a{-webkit-transition:all .45s cubic-bezier(.23,1,.32,1) 0ms;transition:all .45s cubic-bezier(.23,1,.32,1) 0ms}sidebar side content a:hover{background-color:rgba(0,0,0,.04)}sidebar side content a.active{font-weight:700}sidebar side content arrow{position:absolute!important;top:13px;right:27px;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:5px;width:23px;height:23px;border-radius:50%;cursor:pointer;-webkit-transition:all .25s ease-out;transition:all .25s ease-out}sidebar side content arrow:hover{box-shadow:0 1px 3px 1px rgba(60,64,67,.15),0 1px 2px 0 rgba(60,64,67,.3)}sidebar side content arrow.active{-webkit-transform:rotate(180deg);transform:rotate(180deg)}sidebar side content arrow.active:hover{box-shadow:0 -1px 3px 1px rgba(60,64,67,.15),0 -1px 2px 0 rgba(60,64,67,.3)}sidebar side toc{position:relative;display:none;width:100%}sidebar side toc i{position:absolute;left:35px;top:0;bottom:0;display:block;width:2px;background:hsla(0,0%,74%,.4)}sidebar side toc outline{position:relative;display:-webkit-box!important;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;padding:12px 0 12px 60px;min-height:21px;line-height:21px;text-align:left;cursor:pointer}sidebar side toc outline:hover{background-color:rgba(0,0,0,.04)!important}sidebar side .toc-level-h1{padding-left:60px}sidebar side .toc-level-h2{padding-left:70px}sidebar side .toc-level-h3{padding-left:75px}sidebar side .toc-level-h4{padding-left:80px}.hamburger{font:inherit;display:inline-block;overflow:visible;margin:0;padding:15px;cursor:pointer;-webkit-transition-timing-function:linear;transition-timing-function:linear;-webkit-transition-duration:.15s;transition-duration:.15s;-webkit-transition-property:opacity,-webkit-filter;transition-property:opacity,-webkit-filter;transition-property:opacity,filter;transition-property:opacity,filter,-webkit-filter;text-transform:none;color:inherit;border:0;background-color:transparent;-webkit-transform:scale(.5);transform:scale(.5)}.hamburger-box{position:relative;display:inline-block;width:40px;height:24px}.hamburger-inner{top:50%;display:block;margin-top:-2px}.hamburger-inner,.hamburger-inner:after,.hamburger-inner:before{position:absolute;width:40px;height:4px;-webkit-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.15s;transition-duration:.15s;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;border-radius:4px;background-color:#9e9e9e}.hamburger-inner:after,.hamburger-inner:before{content:"";display:block}.hamburger-inner:before{top:-10px}.hamburger-inner:after{bottom:-10px}.hamburger:hover .hamburger-inner,.hamburger:hover .hamburger-inner:after,.hamburger:hover .hamburger-inner:before{background-color:#9e9e9e;-webkit-transform:scale(.7);transform:scale(.7)}.hamburger--arrow:hover .hamburger-inner:before{-webkit-transform:translate3d(-8px,0,0) rotate(-45deg) scaleX(.7);transform:translate3d(-8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrow:hover .hamburger-inner:after{-webkit-transform:translate3d(-8px,0,0) rotate(45deg) scaleX(.7);transform:translate3d(-8px,0,0) rotate(45deg) scaleX(.7)}',""])},685:function(e,t,n){var a=n(589);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)},686:function(e,t,n){var a=n(590);"string"==typeof a&&(a=[[e.id,a,""]]),n(8)(a,{}),a.locals&&(e.exports=a.locals)}});